75 virtual bool isok()
const;
A WvFastString acts exactly like a WvString, but can take (const char *) strings without needing to a...
void read_p12(WvStringParm _fname, WvStringParm _pkcs12pass)
And this reads from the file specified in filename using the password "_pkcs12pass", and fills the RSA and cert members with the decoded information.
virtual ~WvX509Mgr()
Destructor.
WvString sign(WvBuf &data) const
Sign the contents of data and return the signature as a BASE64 string.
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...
virtual WvString encode(const WvX509::DumpMode mode) const
Encodes the information requested by mode into a buffer.
bool signcrl(WvCRL &unsignedcrl) const
Sign the CRL with the rsa key associated with this class.
X509 Class to handle certificates and their related functions.
virtual WvString errstr() const
Says what the error is, if isok() is not true.
bool signcert(WvX509 &unsignedcert) const
Sign the certificate with the rsa key associated with this class.
bool test() const
Test to make sure that a certificate and a keypair go together.
WvRSAKey * get_rsa()
Allow us access to the RSA member.
WvX509Mgr()
Constructor to create a blank certificate + keypair (useful if, for example, you were going to load t...
Specialization of WvBufBase for unsigned char type buffers intended for use with raw memory buffers...
bool write_p12(WvStringParm _fname, WvStringParm _pkcs12pass) const
This writes the certificate and RSA keys in PKCS12 format to the file specified by filename...
DumpMode
Type for the encode() and decode() methods.
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()
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 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...
An RSA public key or public/private key pair that can be used for encryption.
WvString is an implementation of a simple and efficient printable-string class.
virtual bool isok() const
Says if this certificate+key pair is good for use.
A WvLog stream accepts log messages from applications and forwards them to all registered WvLogRcv's...
CRL Class to handle certificate revocation lists and their related functions.
DumpMode
Type for the encode() and decode() methods.