// Verifies credentials (a private key, a certificate for public key and a correspondence between the private and the public key)
//
CredentialsStatusVerifyCredentials(
constboost::filesystem::path&keyPath,
constboost::filesystem::path&certPath,
conststd::string&passphrase);
// Generates public key pair and the self-signed certificate for it, and then stores them by the specified paths 'keyPath' and 'certPath' respectively.
//
boolGenerateCredentials(
constboost::filesystem::path&keyPath,
constboost::filesystem::path&certPath,
conststd::string&passphrase);
// Checks if certificate of a peer is valid (by internal means of the TLS protocol)
//
// Validates peer certificate using a chain of CA certificates.
// If some of intermediate CA certificates are absent in the trusted certificates store, then validation status will be 'false')
//
boolValidatePeerCertificate(SSL*ssl);
// Check if a given context is set up with a cert that can be validated by this context
//
boolValidateCertificate(SSL_CTX*ssl_ctx);
// Creates the list of available OpenSSL default directories for trusted certificates storage