== SSL ==
{{{
openssl genrsa -des3 -out server.key 1024
}}}
![SSL 证书生成方法 - wo是大富 - 5956 SSL 证书生成方法 - wo是大富 - 5956](http://img2.ph.126.net/G-gMfk5_Gp4rJdEW5lTP1Q==/2583658811245186124.png)
{{{
openssl req -new -key server.key -out server.csr
}}}
![SSL 证书生成方法 - wo是大富 - 5956 SSL 证书生成方法 - wo是大富 - 5956](http://img2.ph.126.net/G-gMfk5_Gp4rJdEW5lTP1Q==/2583658811245186124.png)
{{{
openssl rsa -in server.key -out server.key
}}}
![SSL 证书生成方法 - wo是大富 - 5956 SSL 证书生成方法 - wo是大富 - 5956](http://img0.ph.126.net/EfDHLE1BbpFx9CLU04HS1A==/6597252285589033680.png)
{{{
openssl x509 -req -days 3653 -in server.csr -signkey server.key -out server.crt
}}}
![SSL 证书生成方法 - wo是大富 - 5956 SSL 证书生成方法 - wo是大富 - 5956](http://img0.ph.126.net/HOP8RRBrg-i6qrgBXhxgXw==/1623829140744143544.png)
example:
![SSL 证书生成方法 - wo是大富 - 5956 SSL 证书生成方法 - wo是大富 - 5956](http://img1.ph.126.net/NIVRk-xh5-EsN3G_MtqeEg==/1801721326025157253.png)