Results 1 to 6 of 6

Thread: How to sign and verify through Openssl

  1. #1
    Join Date
    Nov 2012
    Location
    Coimbatore
    Posts
    53
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11
    Thanks
    1
    Thanked 3 Times in 3 Posts

    Default How to sign and verify through Openssl

    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

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: How to sign and verify through Openssl

    Yes, I am sure someone can help you. I suggest you look for OpenSSL man pages and tutorials.

  3. #3
    Join Date
    Nov 2012
    Location
    Coimbatore
    Posts
    53
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11
    Thanks
    1
    Thanked 3 Times in 3 Posts

    Default Re: How to sign and verify through Openssl

    Thank for your suggestion , I have tried that but i am not getting what i needed

  4. #4
    Join Date
    Sep 2011
    Posts
    1,241
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    3
    Thanked 127 Times in 126 Posts

    Default Re: How to sign and verify through Openssl

    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.

  5. #5
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: How to sign and verify through Openssl

    Quote Originally Posted by mania View Post
    Thank for your suggestion , I have tried that but i am not getting what i needed
    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

  6. #6
    Join Date
    Nov 2012
    Location
    Coimbatore
    Posts
    53
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11
    Thanks
    1
    Thanked 3 Times in 3 Posts

    Default Re: How to sign and verify through Openssl

    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..

Similar Threads

  1. how to sign my .msi file
    By athulms in forum Newbie
    Replies: 4
    Last Post: 28th September 2011, 07:10
  2. How to free sign my app ?
    By Sparkle24 in forum Qt for Embedded and Mobile
    Replies: 4
    Last Post: 21st August 2011, 23:25
  3. Verify fields in QTableWidget are complete?
    By alitoh in forum Qt Programming
    Replies: 2
    Last Post: 18th May 2011, 13:49
  4. Replies: 3
    Last Post: 1st September 2008, 23:57

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.