login about faq

Verifies that a pair of "internal" RSA private and public key strings are matched I like to check that a private key file is matched with the public key in an X.509 certificate how I can do?

asked Aug 20 '15 at 11:31

Nachito's gravatar image

Nachito
31


According to the comments in this example of the ChilkatRsa object:

http://www.example-code.com/vb/rsa_keynotes.asp

The modulus and exponent will match in the public and private key if they are a match.

With regard to a X.509 certificate, though I haven't tried it myself, I think you should be able to use the ChilkatCert object to import the X.509 file/bytes, export it to XML, then examine the XML to compare compare the public & private exponent and modulus values.

link

answered Aug 21 '15 at 08:56

jpbro's gravatar image

jpbro ♦
1.1k2618

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×47

Asked: Aug 20 '15 at 11:31

Seen: 1,024 times

Last updated: Aug 21 '15 at 08:56

powered by OSQA