Hi,
I want to create private and public key with an extension of cer format, how to create it .By using privatekey file i have sign and verify through public key file .Can any one help me ...
Thanks in advance
Hi,
I want to create private and public key with an extension of cer format, how to create it .By using privatekey file i have sign and verify through public key file .Can any one help me ...
Thanks in advance
Yes, I am sure someone can help you. I suggest you look for OpenSSL man pages and tutorials.
Thank for your suggestion , I have tried that but i am not getting what i needed
why do you think qt forum will be better place to ask than openssl help?
If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.
Then you are either not asking the correct question, or not understanding the answer. For example, ".cer" does not describe a format for certificates, merely an arbitrary (fairly common) extension for an X.509 certificate in binary form. The PEM format and PKCS#12 format are other ways to store a certificate. Public and private keys are different to certificates, although a certificate will contain a public key and be signed with an unrelated private key.
You can create a self-signed certificate for testing... This is a very common request and many examples are easily Googled
openssl genrsa -out privatetest.pem 1024 -------> Create private key in pem format
openssl rsa -in privatetest.pem -pubout > publictest.pem -------> Create public key in pem format
openssl rsautl -sign -inkey privatetest.pem -keyform PEM -in hash > signature -------> Signing with private key
openssl rsautl -verify -inkey publictest.pem -keyform PEM -in signature -------> Verifying with public key
I have tried the above commands in my PC , but i am not able to sign and verify . I am getting an error as "expecting private key "
What is the solution for the above commands..
Bookmarks