Linux command
pkcs7.1s 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
View PKCS#7 structure
openssl pkcs7 -in [file.p7b] -print_certs
Convert to PEM
openssl pkcs7 -in [file.p7b] -out [certs.pem] -print_certs
View structure info
openssl pkcs7 -in [file.p7b] -text -noout
Convert DER to PEM
openssl pkcs7 -in [file.der] -inform DER -out [file.pem]
说明
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.
参数
- -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.
FAQ
What is the pkcs7.1s command used for?
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.
How do I run a basic pkcs7.1s example?
Run `openssl pkcs7 -in [file.p7b] -print_certs` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -in _FILE_ do in pkcs7.1s?
Input file.