Verifying that a private key and certificate match

2007-02-19 Thread Mark H. Wood
Is there a built-in command in the openssl utility which can verify that a private key and a certificate represent a valid keypair? Or is there some simple way to determine this using other built-in commands? -- Mark H. Wood, Lead System Programmer [EMAIL PROTECTED] Typically when a software

Re: Verifying that a private key and certificate match

2007-02-19 Thread Julius Davies
RSA keypair, right? If so, compare that the modulus of both the certificate and the private key is equal. These two commands do the trick: openssl x509 -in cert.pem -modulus -noout openssl rsa -in rsa.pem -modulus -noout If on Unix, I imagine you can do this (ahhh... the glorious

Re: Verifying that a private key and certificate match

2007-02-19 Thread Keith Thompson
On Mon 07-02-19 16:11, Julius Davies wrote: RSA keypair, right? If so, compare that the modulus of both the certificate and the private key is equal. These two commands do the trick: openssl x509 -in cert.pem -modulus -noout openssl rsa -in rsa.pem -modulus -noout If on Unix, I

Re: Verifying that a private key and certificate match

2007-02-19 Thread Goetz Babin-Ebell
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Julius Davies wrote: RSA keypair, right? If so, compare that the modulus of both the certificate and the private key is equal. These two commands do the trick: openssl x509 -in cert.pem -modulus -noout openssl rsa -in rsa.pem -modulus