MantisBT expects the S/MIME certificates and the private key files to be in
PEM format. If you have a
PKCS12 encrypted certificate (typically with a .pfx or .p12 extension), you may use the following
openssl
commands to extract and convert the individual elements:
Certificate
openssl pkcs12 -in cert.pfx -clcerts -nokeys -out cert.crt
Extra certificates ("CA chain")
openssl pkcs12 -in cert.pfx -cacerts -nokeys -out ca-chain.crt
Private key (-passout
specifies the private key's password)
openssl pkcs12 -in cert.pfx -nocerts -out cert.key -passout pass:
If the input file is protected, openssl will ask for the password; alternatively, you can specify it on the command-line with the -passin option, e.g. -passin pass:PASSWORD