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. Code Signing Verification

Code Signing Verification

Scheduled Pinned Locked Moved C / C++ / MFC
questionvisual-studiocomcryptography
3 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.
  • Richard Andrew x64R Offline
    Richard Andrew x64R Offline
    Richard Andrew x64
    wrote on last edited by
    #1

    I understand that I can use WinVerifyTrust()[^] to validate a PE file's signature. But it looks as if this will only tell me if the signature is A) valid and B) from a trusted publisher. How do I verify that the signature is from a specific publisher? For instance, I'm worried someone could strip a signature, modify the file, then sign it with their own certificate. The signature in this case would check out, but it wouldn't be from the original publisher. Is there a way to verify the specific publisher, or is there something about code signing I don't understand?

    The difficult we do right away... ...the impossible takes slightly longer.

    G 1 Reply Last reply
    0
    • Richard Andrew x64R Richard Andrew x64

      I understand that I can use WinVerifyTrust()[^] to validate a PE file's signature. But it looks as if this will only tell me if the signature is A) valid and B) from a trusted publisher. How do I verify that the signature is from a specific publisher? For instance, I'm worried someone could strip a signature, modify the file, then sign it with their own certificate. The signature in this case would check out, but it wouldn't be from the original publisher. Is there a way to verify the specific publisher, or is there something about code signing I don't understand?

      The difficult we do right away... ...the impossible takes slightly longer.

      G Offline
      G Offline
      Garth J Lancaster
      wrote on last edited by
      #2

      I would have thought CryptQueryObject was heading down the path you wish to travel (gawd, what have I swallowed, a dictionary ?) .. https://support.microsoft.com/en-us/kb/323809[^]

      Richard Andrew x64R 1 Reply Last reply
      0
      • G Garth J Lancaster

        I would have thought CryptQueryObject was heading down the path you wish to travel (gawd, what have I swallowed, a dictionary ?) .. https://support.microsoft.com/en-us/kb/323809[^]

        Richard Andrew x64R Offline
        Richard Andrew x64R Offline
        Richard Andrew x64
        wrote on last edited by
        #3

        Bingo! Thank you very much. :-D

        The difficult we do right away... ...the impossible takes slightly longer.

        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