mkdir /etc/[webserver]/ssl
openssl genrsa -out “/etc/[webserver]/ssl/example.key” 2048
openssl req -new -key “/etc/[webserver]/ssl/example.key” \ -out “/etc/[webserver]/ssl/example.csr”
Country Name (2 letter code) [AU]:xx
State or Province Name (full name) [Some-State]:xx xx
Locality Name (eg, city) []:xx
Organization Name (eg, company) [Internet Widgits Pty Ltd]:xx
Organizational Unit Name (eg, section) []:xx
Common Name (e.g. server FQDN or YOUR name) []:example.com
Email Address []:xxx@gmail.com
openssl x509 -req -days 365 -in “/etc/[webserver]/ssl/example.csr” \ -signkey “/etc/[webserver]/ssl/example.key” \ -out “/etc/[webserver]/ssl/example.crt”
No comments:
Post a Comment