digital-certificate

In C#, sign an xml with a x.509 certificate and check the signature

旧巷老猫 提交于 2019-11-26 19:19:36
问题 I'm trying to sign an XML file using a x.509 certificate, I can use the private key to sign the document and then use the CheckSignature method (it has an overload that receives a certificate as parameter) to verify the signature. The problem is that the user who validates the signature must have the certificate, my concern is, if the user has the certificate then he has access to the private key, and as I understand, this is private and should be available only to the user who signs. What am

Python: reading a pkcs12 certificate with pyOpenSSL.crypto

风流意气都作罢 提交于 2019-11-26 16:16:51
问题 I have a valid certificate issued by the spanish authority (FNMT) and I want to play with it to learn more about it. The file has extension .p12 I would like to read the information in it (first and last name) and check if the certificate is valid. Is it possible to do that with pyOpenSSL? I guess I have to use the crypto module in OpenSSL. Any help or useful link? Trying reading here: http://packages.python.org/pyOpenSSL/openssl-crypto.html but not much information :-( 回答1: It's fairly

How to load a PKCS#12 Digital Certificate with Javascript WebCrypto API

你离开我真会死。 提交于 2019-11-26 12:43:51
问题 I\'m trying to sign data using the WebCrypto API, but instead of creating a private/public key and exporting it to pkcs#1 or 8, I would really like to use a user\'s PKCS#12 to sign data. I\'ve read the W3C spec, but cannot make much of it and can\'t find any good material on how to do this. Right now I want to leave ActiveX and Java Applets aside. Is there a way to tweak the following: var buffer = encode(prompt(\"Please enter your password\")); //TODO: //implement a prompt for a pfx or cert