PKCS # 7 is a cryptographic standard published by RSA Security in 1993 that deals with data to which cryptography is applied. Its standard for secure data storage. PKCS # 7 refers to the X.509 standard as a source for certificate formatting.
X.509 is a widely distributed security standards document published in 1998 that includes, among other things, certificate file formats.
X.509 indicates that certificates should be encoded using the ASN.1 Distinctive Encoding Rules (documented in X.208 and now X.608), first published in 1984.
So, DER says how to encode some strings and numeric source data in binary format, X.509 says what data needs to be converted to a digital certificate, and PKCS # 7 tells how to use this certificate to digitally sign a message.
Privacy Enhanced Mail - some tool released before OpenSSL - for sending PKCS # 7 "wrapped" data to e-mail messages, which at that time were exchanged for systems that supported only 7-bit ASCII characters - "PEM" created a standard for using Base64 for encoding X.509 certificates required by PKCS # 7 and storing base64 inside ----- BEGIN ??? ----- ----- END ??? ----- where ??? can be RSA PRIVATE KEY, PSA PUBLIC KEY, CERTIFICATE, etc.
source share