by İsmail Baydan
How To Read RSA, X509, PKCS12 Certificates with OpenSSL?
OpenSSL provides read different type of certificate and encoding formats. OpenSSL supports certificate formats like RSA, X509, PCKS12 etc. We will look how to read these certificate formats with OpenSSL.
OpenSSL提供读取不同类型的证书和编码格式。OpenSSL支持RSA、X509、PCKS12等证书格式。我们将了解如何使用OpenSSL读取这些证书格式。
读取RSA 私钥
RSA is popular format use to create asymmetric key pairs those named public and private key. We can use rsa
verb to read RSA private key with the following command.
RSA是用于创建非对称密钥对(即公钥和私钥)的常用格式。我们可以使用以下命令使用rsa谓词读取rsa私钥。
$ openssl rsa -in myprivate.pem -check
We can see that the first line of command output provides RSA key ok
我们可以看到命令输出的第一行提供了RSA密钥ok