powered by Jive Software

Server Certificates

Hi Everyone,

I have a .pem certificate that I would like to import on our OpenFire server. I’d like to import the signed certificate but I’m not exactly sure how to extract the content of the private key and the content of the certificate file.

Anyone else have this issue? Any recommendations?

Cheers,

Ryan

Replying to my own question, it’s best to just import the self-signed certificate from OpenFire into Apple’s Keychain.

Here is a shell script that I wrote to import the cert on all of our Macs. You can do this using Apple’s Remote Desktop, LanRev, Filewave, Radmind, or whatever tool you use.

#!/bin/sh
# This script is for importing certificates into Tiger and Leopard

Tiger import

certtool i /Users/Shared/Certs/im.yourdomain.pem v k=/System/Library/Keychains/X509Anchors

certtool i /Users/Shared/Certs/im.yourdomain.org.pem v k=/System/Library/Keychains/X509Anchors

Leopard import

security add-trusted-cert -d -r trustAsRoot -k “/Library/Keychains/System.keychain” /Users/Shared/Certs/im.yourdomain.cer