Certificate Class Reference

#include <Pt/Ssl/Certificate.h>

X509 certificate. More...

Inherits NonCopyable.

Public Member Functions

 ~Certificate ()
 Destructor.
std::string subject () const
 Returns the subject of the certificate.

Detailed Description

Certificate is the non-copyable handle the store holds for one X509 certificate. subject() is the subject string used to find it. The private key, when the store loaded one for this certificate, stays inside the handle and is not readable.

Pass the certificate by const reference to Context::setIdentity(), addCertificate(), or addCACertificate(). The store remains the owner of this object.