In search for questions.

Content by Tyches.
Licensed under CC by.

Theme by nostrich, altered by Tyches.

4th April 2009

Text

Certified

If you ever happen to have to import a PEM certificate file (foo.crt) containing only a public key together with a private RSA key also in PEM format in its own file (foo.key) into MAc OS X Keychain, here’s a tip. Although you can just click on foo.crt it will just import the public key, and Keychain Access won’t handle foo.key alone. Don’t bother to convert, regenerate, whatever though, here’s the magic terminal one-liner:

certtool i foo.crt r=foo.key

It took me a damn hour to find that.