8

How to create snakeoil a certificate and a key for a given host in Ubuntu?

1
  • You might find more or better answers on SuperUser.com.
    – DOK
    Oct 21, 2009 at 1:01

1 Answer 1

8

First make sure that the ssl-cert package is installed:

sudo apt-get install ssl-cert

Then, try the command below.

sudo make-ssl-cert generate-default-snakeoil --force-overwrite

This will end up creating or overwriting the following files:

/etc/ssl/certs/ssl-cert-snakeoil.pem
/etc/ssl/private/ssl-cert-snakeoil.key

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.