Linux Commands Examples

A great documentation place for Linux commands


Debconf wrapper for openssl

see also : openssl


make-ssl-cert template output-certificate [--force-overwrite]
make-ssl-cert generate-default-snakeoil

add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!


echo "* Regenerating snakeoil certs"
make-ssl-cert generate-default-snakeoil --force-overwrite


make-ssl-cert is a simple debconf to openssl wrapper to create self-signed certificates. It requires a source template (Ex: /usr/share/ssl-cert/ssleay.cnf) and it will place the new generated certificate in the specified output file.
Invoked with "generate-default-snakeoil", it will generate /etc/ssl/certs/ssl-cert-snakeoil.pem and /etc/ssl/private/ssl-cert-snakeoil.key.


A summary of options are included below.

Use this option ONLY when strictly required since it will overwrite the output certificate.

see also



The program author is Thom May <thom[:at:]debian[:dot:]org>, manual page was written for completness by Fabio M. Di Nitto <fabbione[:at:]fabbione[:dot:]net>, for the Debian GNU/Linux system (but may be used by others).

How can this site be more helpful to YOU ?

give  feedback