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

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -