Library: NetSSL_OpenSSL
Package: SSLCore
Header: Poco/Net/ConsoleCertificateHandler.h
A ConsoleCertificateHandler is invoked whenever an error occurs verifying the certificate.
The certificate is printed to stdout and the user is asked via console if he wants to accept it.
Direct Base Classes: InvalidCertificateHandler
All Base Classes: InvalidCertificateHandler
Member Functions: onInvalidCertificate
Inherited Functions: onInvalidCertificate
ConsoleCertificateHandler(
bool handleErrorsOnServerSide
);
Creates the ConsoleCertificateHandler.
virtual ~ConsoleCertificateHandler();
Destroys the ConsoleCertificateHandler.
void onInvalidCertificate(
const void * pSender,
VerificationErrorArgs & errorCert
);
Prints the certificate to stdout and waits for user input on the console to decide if a certificate should be accepted/rejected.