Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. how to get private key from a file (not from a keystore) to sign data ?

how to get private key from a file (not from a keystore) to sign data ?

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    IICTECH
    wrote on last edited by
    #1

    Hi, I'm trying to sign data using dsa private key using openSSL. I want to use a private key that is stored in a file. Can any one please suggest me how to get privae key from a file. Thanks in advance. ;)

    L 1 Reply Last reply
    0
    • I IICTECH

      Hi, I'm trying to sign data using dsa private key using openSSL. I want to use a private key that is stored in a file. Can any one please suggest me how to get privae key from a file. Thanks in advance. ;)

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Read the file and extract the key. You need to explain exactly how this key is stored in the file and what problem you are having reading it out.

      I 1 Reply Last reply
      0
      • L Lost User

        Read the file and extract the key. You need to explain exactly how this key is stored in the file and what problem you are having reading it out.

        I Offline
        I Offline
        IICTECH
        wrote on last edited by
        #3

        My private key file is a text file and it contains the data

        // BIG p
        FCA6 82CE 8E12 CABA 26EF CCF7 110E 526D B078 B05E DECB CD1E B4A2 08F3 AE16 17AE 01F3 5B91 A47E 6DF6 3413 C5E1 2ED0 899B CD13 2ACD 50D9 9151 BDC4 3EE7 3759 2E17.
        // BIG q
        962E DDCC 369C BA8E BB26 0EE6 B6A1 26D9 346E 38C5.
        // BIG g
        6784 71B2 7A9C F44E E91A 49C5 147D B1A9 AAF2 44F0 5A43 4D64 8693 1D2D 1427 1B9E 3503 0B71 FD73 DA17 9069 B32E 2935 630E 1C20 6235 4D0D A20A 6C41 6E50 BE79 4CA4.
        // BIG x
        06CE 2BF2 3F33 FDCD 3F22 1301 4F56 1152 69F6 FA4D.

        Here BIG x is the private key and I need this key to sign my data. :)

        L G 2 Replies Last reply
        0
        • I IICTECH

          My private key file is a text file and it contains the data

          // BIG p
          FCA6 82CE 8E12 CABA 26EF CCF7 110E 526D B078 B05E DECB CD1E B4A2 08F3 AE16 17AE 01F3 5B91 A47E 6DF6 3413 C5E1 2ED0 899B CD13 2ACD 50D9 9151 BDC4 3EE7 3759 2E17.
          // BIG q
          962E DDCC 369C BA8E BB26 0EE6 B6A1 26D9 346E 38C5.
          // BIG g
          6784 71B2 7A9C F44E E91A 49C5 147D B1A9 AAF2 44F0 5A43 4D64 8693 1D2D 1427 1B9E 3503 0B71 FD73 DA17 9069 B32E 2935 630E 1C20 6235 4D0D A20A 6C41 6E50 BE79 4CA4.
          // BIG x
          06CE 2BF2 3F33 FDCD 3F22 1301 4F56 1152 69F6 FA4D.

          Here BIG x is the private key and I need this key to sign my data. :)

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          IICTECH wrote:

          Here BIG x is the private key and I need this key to sign my data.

          So what is your problem?

          1 Reply Last reply
          0
          • I IICTECH

            My private key file is a text file and it contains the data

            // BIG p
            FCA6 82CE 8E12 CABA 26EF CCF7 110E 526D B078 B05E DECB CD1E B4A2 08F3 AE16 17AE 01F3 5B91 A47E 6DF6 3413 C5E1 2ED0 899B CD13 2ACD 50D9 9151 BDC4 3EE7 3759 2E17.
            // BIG q
            962E DDCC 369C BA8E BB26 0EE6 B6A1 26D9 346E 38C5.
            // BIG g
            6784 71B2 7A9C F44E E91A 49C5 147D B1A9 AAF2 44F0 5A43 4D64 8693 1D2D 1427 1B9E 3503 0B71 FD73 DA17 9069 B32E 2935 630E 1C20 6235 4D0D A20A 6C41 6E50 BE79 4CA4.
            // BIG x
            06CE 2BF2 3F33 FDCD 3F22 1301 4F56 1152 69F6 FA4D.

            Here BIG x is the private key and I need this key to sign my data. :)

            G Offline
            G Offline
            Graham Breach
            wrote on last edited by
            #5

            If that is your actual private key file, then it is not private anymore.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups