To export a certificate, see here .
In short, enter this in the terminal:
sudo /Applications/Utilities/Keychain\ Access.app/Contents/MacOS/Keychain\ Access
This will require your password. After Keychain opens, you can export the certificate along with the private key.
source
share