glooxd
0.3-svn
|
Classes | |
class | Semaphore |
A simple implementation of semaphore as a wrapper around a pthread or win32 semaphore. More... |
Functions | |
bool | generateCertificate (const std::string &domain, const std::string &key, const std::string &path, int bits, int days, int serial) |
A namespace holding utility functions.
GLOOXD_API bool generateCertificate | ( | const std::string & | domain, |
const std::string & | key, | ||
const std::string & | path, | ||
int | bits, | ||
int | days, | ||
int | serial | ||
) |
Generates a private key and stores it in the goven location.
path | The path to the resulting key. Generates a new self-signed certificate from the given key, using the given name as the COMMON NAME, and storing it in the given file. |
domain | The COMMON NAME for which the certificate is generated. |
key | The path to the private key. |
path | The path to the resulting certificate. |
bits | The 'modulo size' of the generated RSA key. |
days | The validity of the certificate in days. |
serial | A serial number. |
Definition at line 47 of file certificategenerator.cpp.