LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

pkcs7.1s

Process PKCS#7 certificate chain structures

TLDR

View PKCS#7 structure
$ openssl pkcs7 -in [file.p7b] -print_certs
copy
Convert to PEM
$ openssl pkcs7 -in [file.p7b] -out [certs.pem] -print_certs
copy
View structure info
$ openssl pkcs7 -in [file.p7b] -text -noout
copy
Convert DER to PEM
$ openssl pkcs7 -in [file.der] -inform DER -out [file.pem]
copy

SYNOPSIS

openssl pkcs7 [options]

DESCRIPTION

openssl pkcs7 processes PKCS#7 structures (.p7b files), which contain certificate chains without private keys. This format is commonly used to distribute CA certificate bundles and intermediate certificates.The -print_certs option extracts individual PEM certificates from the chain. Format conversion between PEM and DER encodings is supported with -inform and -outform. The -text option displays the structure in human-readable form.

PARAMETERS

-in FILE

Input file.
-out FILE
Output file.
-print_certs
Print certificates.
-text
Print text form.
-inform FORMAT
Input format (PEM, DER).
-noout
No output.

CAVEATS

Part of OpenSSL. Certificate chains only. No private keys.

HISTORY

PKCS#7 support in OpenSSL handles certificate chain structures.

SEE ALSO

Copied to clipboard
Kai