Use this class to load a certificate from .pfx format. Only applicable to Schannel. More...
#include <Win32Certificate.hpp>
Public Member Functions | |
PfxCertificate (const std::string &pathToCert, const tstring &password, const tstring &certName) | |
Loads a certificate from a .pfx file, using the given file path, password and certificate name. | |
void | addToStore (Win32CertificateLocation certStoreLocation, Win32CertificateStore certStore) |
Adds the certificate to the given Windows certificate store. | |
![]() | |
tstring | getCertificateName () |
Gets the name of the certificate. | |
tstring | getIssuerName () |
Gets the name of the issuer of the certificate. | |
void | exportToPfx (const std::string &pfxFilePath) |
Exports the certificate in PFX format, to the given file path. | |
Win32CertificatePtr | findRootCertificate (Win32CertificateLocation certStoreLocation, Win32CertificateStore certStore) |
Use this class to load a certificate from .pfx format. Only applicable to Schannel.