Charles Cranston wrote:

List the certificate:   openssl x509 -noout -text -in <certfilename>
List the key:           openssl rsa  -noout -text -in <keyfile>

Make sure the fields in PublicKey (Modulus and Public Exponent)
match between the two.

Note that if private key is encrypted you will need to give
the password for the openssl rsa above

Warrick FtizGerald wrote:

I have a certificate and a key that don't seem to want to work together. How can I verify that the combination is good?


Thanks for the help guys:

Oh bother it seems they are the same:

From the public key:
       Subject Public Key Info:
           Public Key Algorithm: rsaEncryption
           RSA Public Key: (1024 bit)
               Modulus (1024 bit):
                   00:cb:aa:35:d5:df:19:39:84:81:36:10:02:84:c3:
                   e1:43:e1:be:69:0d:e4:89:eb:9f:ca:45:b8:be:80:
                   b7:e8:c1:ce:29:be:95:fb:20:d7:f3:da:67:b1:e1:
                   c1:8a:fb:ec:ef:1a:2a:d8:e7:67:09:cf:b9:6b:55:
                   f3:28:57:30:f7:fc:f9:23:ab:ea:aa:24:7f:3e:c8:
                   e7:fb:f4:0b:62:03:68:32:23:d7:5d:8c:1d:4c:5d:
                   8a:a2:b5:3a:ce:00:92:99:1c:fb:d7:a8:f0:a7:93:
                   c5:c8:3c:84:a4:70:a0:02:50:d2:c2:6c:9e:a3:c3:
                   40:f4:bc:07:59:ac:a1:61:51
               Exponent: 65537 (0x10001)

From the private key:
Private-Key: (1024 bit)
modulus:
   00:a6:16:30:78:ca:2e:39:27:32:c9:36:c0:16:55:
   11:49:8b:d7:d4:22:64:39:c5:c5:87:b0:a3:f0:8f:
   e8:44:e2:f9:e3:0d:7c:45:80:26:2b:6d:33:9d:26:
   a6:36:5c:d0:88:0f:28:7c:e8:65:a0:bc:2c:d1:34:
   63:56:c6:9b:b2:a7:30:4e:38:d1:9c:51:11:e2:2f:
   7b:43:25:56:a7:3c:09:e7:60:5e:d5:7d:6f:e2:39:
   7b:88:3f:69:23:ea:9b:f1:81:9d:44:2d:21:6b:f6:
   4e:7f:17:cf:0c:d6:7b:51:d0:f5:bb:4c:26:d7:9e:
   51:f4:92:5e:92:ba:25:fa:dd
publicExponent: 65537 (0x10001)

Is there any other test I can run that may help me figure out why this combination seems to fail?

Thanks
Warrick FitzGerald
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to