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. password for batch processing with CryptoAPI

password for batch processing with CryptoAPI

Scheduled Pinned Locked Moved C / C++ / MFC
cryptographysalesquestion
1 Posts 1 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.
  • W Offline
    W Offline
    Wim Engberts
    wrote on last edited by
    #1

    Hi all, I have a module that digitally signs, crypts, decrypts and verifies messages using Microsoft's CryptoAPI. Normally, when I install a certificate, I have to provide the password only once, and Microsoft stores this password, so that for each use of the certificate (when signing or decrypting) I do not have to enter the apssword again (the only thing you can then configure is the OS asking if it is OK to use the certificate). This is a necessary behaviour, since we use this module in an unattended system. We are now facing the chalenge that we have to use hard-token certificates (since our customer sends invoices to Germany and they demand this) However, I cannot install this token with a one-time password, so that the system now asks every time again for this password. Since there is no user, the system halts at that point. I can not find a way to pass the password in the call to either CryptSignMessage or any of its related functions. If I could do that, then I could store the password myself and pass it automatically. Does anyone have a suggestion? Thanks in advance William

    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