How to get digital signature value from x509 certificate in C# -
does know how possible c# digital signature value x509 certificate (which in x509store , not validate file) , show example in textbox. know getrawcertdatastring() returns raw data entire x509 certificate includes digital signature on last rows can not find command returns digital signature.
your best way asn.1 parser , extract digital signature, or p/invoke stuff. need use cryptdecodeobject function , pass x509_cert
lpszstructtype
parameter. function returns (in pvstructinfo
) pointer cert_signed_content_info structure. structure has signature
field simple bit_blob
structure byte array in cbdata
, pbdata
fields (use marshal.copy
copy bytes unmanaged memory managed byte array).
Comments
Post a Comment