glooxd  0.3-svn
Classes | Functions
glooxd::util Namespace Reference

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)

Detailed Description

A namespace holding utility functions.

Function Documentation

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.

Parameters
pathThe 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.
domainThe COMMON NAME for which the certificate is generated.
keyThe path to the private key.
pathThe path to the resulting certificate.
bitsThe 'modulo size' of the generated RSA key.
daysThe validity of the certificate in days.
serialA serial number.

Definition at line 47 of file certificategenerator.cpp.