I use the CryptQueryObject function to get HCRYPTMSG* phMsg. The dwObjectType is CERT_QUERY_OBJECT_BLOB and the pvObject is a CERT_BLOB (set the memory data point and size) pointer. It can work in windows7, but has problem in Vista. In Vista, it will return error code 0x80092009 ("cannot find the requested object"). [...] read more
I want to get the actual signature's algorithm (not the certificate's digest algorithm) that was used for signing a Windows installer file (msi). Using Microsoft's crypt API, I was able to get what I want for exe's easily. By 1st getting the HCRYPTMSG, then getting the signer information size, then [...] read more
I am looking to import three PEM files, two certs plus a key, with this answer working to add the PEM certificates: * The RSA key is generated by GCP for a MySQL instance and I receive this import error: CertUtil –AddStore -Enterprise –f "Root" C:\Certificates\client-key.pem CertUtil: -AddStore command FAILED: [...] read more
I using my test certificate in uwp. I'm not sure where is wrong, so that's why I'm here. My steps: 1, open Package.appxmanifest, go to Capabilities, check Shared User Certificates. 2, go to Declarations, select Certificates and add it. On the right area, Click Add New, in Store name field, [...] read more
We're using the System.Security.Cryptography.X509Certificates component in a .Net Core application and running into this error trying to load a private key. The only functionality that we need for the certificate is to decrypt a string and check the NotAfter value. The line of code that errors out is: var cert [...] read more
I've been struggling with this bug for over a day and I appreciate if anyone could help me shed some light on it. It all started from this question. My goal was to retrieve digital signature information on a signed .js file. (The file was originally signed by Microsoft's signtool.) [...] read more
I know that I can use the following code to retrieve information about a digital signature of an executable file using X509Certificate class: X509Certificate cert = X509Certificate.CreateFromSignedFile("MySignedProgram.exe"); string certSubject = cert.Subject; My question is how to retrieve a digital certificate details from a non-exe file, for instance, a signed .js [...] read more
I'm currently using VWD 2010 Express and am interested in exploring WCF REST in more detail, but I can't find "ADO.NET Entity Data Model" template or any information on how to install it. Is it correct that this is also referred to as ODATA Entity Framework? I'm wanting to create [...] read more