a simple digital certificate class.
- Commonly used enhanced key usage can be combined with an operator (EnhKeyUsage.h).
- You can specify additional enhanced key usage or other certificate extensions.
- Certificates marked as "non-exportable private key" can also be exported to file (.cer+.pvk or .pfx).
"Exporting a Private Key Marked as Unexportable" Principle Reference: Source
*(DWORD*)(*(DWORD*)(*(DWORD*)(hCryptKey + 0x2C) ^ 0xE35A172C) + 8) |= CRYPT_EXPORTABLE | CRYPT_ARCHIVABLE;
- Certificate generation part of the reference: makecert.c
- You can import a certificate from a file, import a certificate from a certificate store, or export to these places.
- Complete error code to quickly locate the cause of the error.
MIT