2008-08-12

Create a self-signed certificate for Apache 2

If you already have a private key in /etc/httpd/conf/ssl.key/server.key do this :
# cd /etc/httpd/conf/ssl.key
# openssl req -new -x509 -days 365 -key server.key -out server.crt
Country Name (2 letter code) [GB]:CA
State or Province Name (full name) [Berkshire]:Quebec
Locality Name (eg, city) [Newbury]:Montreal
Organization Name (eg, company) [My Company Ltd]:Xxxxxxx
Organizational Unit Name (eg, section) []:IT
Common Name (eg, your name or your server's hostname) []:xxxxxx
Email Address []:xxxxxxxx@gmail.com

No comments: