from: http://www.debsir.org/main/?q=node/146
The PKCS full name is Public-key cryptography standards, a set of standards developed by RSA Labs and other security system developers to facilitate the development of public key cryptography, which currently has a total of 15 standards. Commonly used are:
Pkcs#7 Cryptographic Message Syntax Standard
PKCS#10 Certification Request Standard
pkcs#12 Personal information Exchange Syntax Standard
The most common common certificate format is the. All certificates conform to the ITU-T X509 International Standard established for public Key Infrastructure (PKI).
Pkcs#7 commonly used suffixes are:. p7b. p7c. Spc
Pkcs#12 commonly used suffixes are:. P12. PFX
The suffix of the DER encoded (ASCII) is:. DER. Cer. Crt
The suffix of the Base64 is:. Pem. Cer. Crt
In the toolset of OpenSSL, you can typically specify DER or PAM format using-outform-inform. For example:
OpenSSL x509-in cert.pem-inform pem-out Cert.der-outform der
For the conversion of PEM to pkcs#12 in OpenSSL, refer to the command:
OpenSSL pkcs12-export-in cert.pem-out Cert.p12-inkey Key.pem
Pkcs#12 to PEM conversion in OpenSSL, refer to:
OpenSSL pkcs12-in cert.p12-out key.pem
OpenSSL x509-in key.pem-text-out Cer T.pem by Etony at 2007-03-16 03:41 | Notes | Etony's Blog | participate in