Hi,

Is it possible to verify a SSL certificate and private key?

I can open the certificate and verify it's a valid certificate and get the 
common name.

dim x as X509MBS = X509MBS.Open(s)

How can I verify the private key is linked to the certificate?

Online I've found these:

$ openssl pkey -in example.key -pubout -outform pem | sha256sum
$ openssl x509 -in example.crt -pubkey -noout -outform pem | sha256sum
$ openssl req -in example.csr -pubkey -noout -outform pem | sha256sum 

or
$ openssl rsa -noout -modulus -in example.key | openssl md5
$ openssl req -noout -modulus -in example.csr | openssl md5
$ openssl x509 -noout -modulus -in example.crt | openssl md5

Regards,

Lee


_______________________________________________
[email protected] mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to