Hello,
> I have a couple  CA certificates and couple Cert/Private keys. What
> command in openssl allow me to see what Cert/Private keys belong to
> what CA ??

To find certificate and private key pair:
 $ openssl x509 -in vpn-server-crt.pem -modulus -noout
 Modulus=DDACB7ED10A3AE69E7FB0320471C0C3F9C6A3BC...
 $ openssl rsa -in vpn-server-key.pem -modulus -noout
 Modulus=DDACB7ED10A3AE69E7FB0320471C0C3F9C6A3BC...

To find CA and certificate pair:
 $ openssl x509 -in vpn-server-crt.pem -issuer -noout
 issuer= __issuer_information__
 $ openssl x509 -in cacert.pem -subject -noout
 subject= __issuer_information__

To verify certificate:
 $ openssl verify -CAfile cacert.pem vpn-server-crt.pem
 vpn-server-crt.pem: OK

Best regards,
-- 
Marek Marcola <[EMAIL PROTECTED]>

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to