- openssl genrsa -des3 -out test.com.key 1024
- openssl req -new -key test.com.key -out test.com.csr
- openssl rsa -in test.com.key -out test.com_nopass.key
- openssl x509 -req -days 365 -in test.com.csr -signkey test.com.key -out test.com.crt
Nginx的配置:
- server {
- server_name www.test.com;
- listen 443;
- index index.html index.htm index.php;
- root /data/wwwroot/www.test.com;
- ssl on;
- ssl_certificate test.com.crt;
- ssl_certificate_key test.com_nopass.key;
- ......
- }
#1 by taffy on 2011-07-05 - 13:41
This codes are very complicated,did you make this codes by yourself? Because if yes then i should say that you have a brilliant idea.
#2 by 易水寒沙 on 2011-08-25 - 16:42
Not by myself.