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. public/private key pair and digital certificate

public/private key pair and digital certificate

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++cryptographyjsontutorial
2 Posts 2 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.
  • V Offline
    V Offline
    Varghese Paul M
    wrote on last edited by
    #1

    Hi everyone, I have CERT_CONTEXT with me. How do I get public key from a digital certificate as HCRYPTKEY to use with API like CryptEncrypt? (ie how to get HCRYPTKEY from CRYPT_BIT_BLOB) How do I do the same for my private key? (ie how to get HCRYPTKEY from my private key) Links to C++ examples / documentations are welcome Thanks in advance.

    cheers Varghese Paul

    B 1 Reply Last reply
    0
    • V Varghese Paul M

      Hi everyone, I have CERT_CONTEXT with me. How do I get public key from a digital certificate as HCRYPTKEY to use with API like CryptEncrypt? (ie how to get HCRYPTKEY from CRYPT_BIT_BLOB) How do I do the same for my private key? (ie how to get HCRYPTKEY from my private key) Links to C++ examples / documentations are welcome Thanks in advance.

      cheers Varghese Paul

      B Offline
      B Offline
      BIJU Manjeri
      wrote on last edited by
      #2

      the public/private keys can be generated by using the function CryptGenKey http://msdn.microsoft.com/en-us/library/aa379941(VS.85).aspx[^] MSDN provide a lot of examples for the SECURITY section. For a better results from others, please explain your problem clearly, I mean, code snippet etc.. BIJU

      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