I am trying to create a self signed cert using certenroll, but I appear to be getting something wrong with the CSignerCertificate::Initialize as it throws an error 0x8009200a CRYPT_E_UNEXPECTED_MSG_TYPE. 'MyCustomRoot' is the name of my self signed root certificate that is in the Current USer->Personal->Certificates store. public static X509Certificate2 CertOpen(string [...] read more
I have an app that up until now used makecert.exe to generate self certificates. However as makecert does't have the ability to add a SubjectAltName field, I am needing to migrate the code to certenroll.dll This is the original makecert code: public static X509Certificate2 MakeCert(string subjectName) { X509Certificate2 cert; string [...] read more