| [Insert name here] Reference Manual |
|---|
int prelude_ssl_gen_crypto (int keysize, int expire, const char *keyout, int crypt, uid_t uid);
int prelude_ssl_gen_crypto (int keysize,
int expire,
const char *keyout,
int crypt,
uid_t uid);Create a new private key of keysize bits, expiring in expire days, along with a self signed certificate for this key. Both the key and the certificate are saved in keyout.
If crypt is true, the key will be stored encrypted.
| keysize : | Size of the RSA key to create. |
| expire : | Number of day this key will expire in. |
| keyout : | Place where the create key should be stored. |
| crypt : | Whether the key should be crypted or not. |
| uid : | UID of authentication file owner. |
| Returns : | 0 on success, or -1 if an error occured. |
| <<< sensor | prelude-getopt >>> |