Note that there are some explanatory texts on larger screens.

plurals
  1. USŽeljko Tanović
    primarykey
    data
    text
    plurals
    1. This table or related slice is empty.
    1. COAgree - the code is incomplete, and as I said above it is more a pseudo code... I didn't have time to refactor the class ( which is part of commercial project ) so I could post the complete code. No article either - this is my code I had to write to get around a misbehaving smart card crypto provider which didn't provide access to private key through windows certificate store....
      singulars
    2. COHi, you might want to read up a bit on public-private key cryptography... Comparing hash of the public key to some other hash is not enough to prove identity as public key is PUBLIC ( sorry for caps lock, can't make it bold here ), and therefore available to anyone for interception. To prove identity you need to sign piece of data with private key (effectively encrypting hash with your private key). This signature can be verified using your public key (using it to decrypt the hash and compare it with data). That's the reason why you need access to private key. Or I misunderstood your question?
      singulars
    3. COYou can only store public part of the certificate somewhere - and comparing public parts of the certificate is not enough to prove possesion of the private key. Therefore you need private key access to sign some data and prove that. Crypto provider will sometimes make available private key to certificate store automatically and sometimes not. In case it doesn't this is the way to get it.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload