test
[hcoop/zz_old/ikiwiki] / UsingSsl.mdwn
1 To create a self-signed SSL cerificate in `file.crt` with key in `file.key`, you can run:
2
3 {{{
4 openssl req -x509 -newkey rsa:1024 -keyout file.key -out file.crt -days 9999 -nodes
5 }}}
6
7 If you are creating an SSL certificate to use for a web virtual host via domtool, then you should generate a single output file instead of separate `.crt` and `.key` files. For example:
8
9 {{{
10 openssl req -x509 -newkey rsa:1024 -keyout file.pem -out file.pem -days 9999 -nodes
11 }}}