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

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

1 Answer 1


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:


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.