How to use C++ to generate Certificate Signing Request by windows API?
I want to generate csr and send it to the server to sign it.
But I can't find the API.
Does anyone have some suggestion?
The library looks to be: CertEnroll.dll
http://msdn.microsoft.com/en-us/library/aa374863%28VS.85%29.aspx
These samples shows hot to access them from C++. This is where your application should go for the CSR.
Related
I am developing a firefox web extension (Add On) which communicates with my Native Mac Application through "Socket Connection". I got stuck with the requirement to authorise the Client (Socket client from firefox add on) as I am unable to find out a unique identifier for my unpacked firefox add on.
I am trying to map the unique Id in the application side so that I can check whether the add on with same Id is trying to connect to the Socket server which would be restricted in case of unauthorised Identifier.
The identifier that comes along with Origin header in the connection request is Internal UUID of the add on which changes on each installation as per Firefox documentation.
I welcome an answer that could guide me to choose a perfect unique identifier or different approach that could validate the add on.
To have it work in this scenario, you will need to add in the applications key in manifest.json
Once you have finished developing the extension, you can package it and submit it to AMO for review and signing. If the packaged extension you upload does not contain an ID, AMO will generate one for you. It's only at this point that the add-on will be assigned a permanent ID, which will be embedded in the signed packaged extension.
Check out MDN webdocs for the full information on that though. They have full guides on how to use AMO as well.
How can I verify the signature of a message following the CMS structure (https://www.rfc-editor.org/rfc/rfc5652) by using the Firefox Add-On SDK?
I already could find some classes (e.g. http://doxygen.db48x.net/mozilla/html/interfacensICMSMessage.html), but I'm unsure if I can use them in an Add-On as there is not very much documentation.
If this is not possible, is there at least a way to check if the given certificate of the message is trusted by the list of CAs built into Firefox? (I'll try to use the webcrypto API to verify the signature in this case)
I want to verify the digital signature for in app purchase. I don't know how do I accomplish this. I got so many sample and links but they are not working.
Here is the Receipt verification sample and this code to verify purchase using receipt.
Problem is, the link https://go.microsoft.com/fwlink/?LinkId=246509&cid=xxxxxxxxxxxxx returns Page not found exception and SignedXml,X509Certificate2 is not not present in windows phone 8.
Also the sample is for Windows phone 8 but when i add the sample project in my project i got error in referencing. I've asked this question before.
So plz guide me how can I verify the purchase using this digital signature?
Certificate is used to sign pkcs requests or pdf-s created on phone. Is there some mechanizm to do it?
Can i connect to AD and CA from windows phone app?
Thanks
Yes, you can email a CER file, download a CER file or launch it from your app and install custom certificates on WP8.
See code sample in a previous answer of mine # TLS connection: override certificate validation
I want to programmatically(c/c++) get the "Thumbprint" value in a specified certificate listed in the "Certificates(Local Computer)" mmc.
Is there any API that can help me achieve it?
Using CertOpenSystemStore, CertEnumCertificatesInStore and CertGetCertificateContextProperty API can solve the problem.