49 WvX509Mgr(WvStringParm _dname,
int bits,
bool ca=
false);
75 virtual bool isok()
const;
157 bool write_p12(WvStringParm _fname, WvStringParm _pkcs12pass)
const;
164 void read_p12(WvStringParm _fname, WvStringParm _pkcs12pass);
WvRSAKey * get_rsa()
Allow us access to the RSA member.
X509 Class to handle certificates and their related functions.
DumpMode
Type for the encode() and decode() methods.
virtual WvString errstr() const
Says what the error is, if isok() is not true.
bool bind_ssl(SSL_CTX *ctx)
Avoid a lot of ugliness by having it so that we are binding to the SSL context, and not the other way...
void read_p12(WvStringParm _fname, WvStringParm _pkcs12pass)
And this reads from the file specified in filename using the password "_pkcs12pass",...
virtual bool isok() const
Says if this certificate+key pair is good for use.
An RSA public key or public/private key pair that can be used for encryption.
DumpMode
Type for the encode() and decode() methods.
WvString is an implementation of a simple and efficient printable-string class.
A WvLog stream accepts log messages from applications and forwards them to all registered WvLogRcv's.
WvX509Mgr()
Constructor to create a blank certificate + keypair (useful if, for example, you were going to load t...
CRL Class to handle certificate revocation lists and their related functions.
WvString signreq(WvStringParm pkcs10req) const
Take the PKCS#10 request in the string pkcs10req, sign it with the private key in rsa,...
bool operator!() const
The not operator returns true if !isok()
void create_selfissued(WvStringParm dname, bool is_ca=false)
Given the Distinguished Name dname and an already generated keypair in rsa, return a Self Signed Cert...
Specialization of WvBufBase for unsigned char type buffers intended for use with raw memory buffers.
virtual void decode(const WvX509::DumpMode mode, WvStringParm encoded)
Load the information from the format requested by mode into the class - this overwrites the certifica...
WvString sign(WvBuf &data) const
Sign the contents of data and return the signature as a BASE64 string.
bool signcert(WvX509 &unsignedcert) const
Sign the certificate with the rsa key associated with this class.
bool signcrl(WvCRL &unsignedcrl) const
Sign the CRL with the rsa key associated with this class.
bool write_p12(WvStringParm _fname, WvStringParm _pkcs12pass) const
This writes the certificate and RSA keys in PKCS12 format to the file specified by filename,...
bool test() const
Test to make sure that a certificate and a keypair go together.
virtual ~WvX509Mgr()
Destructor.
virtual WvString encode(const WvX509::DumpMode mode) const
Encodes the information requested by mode into a buffer.