shell> openssl genrsa -des3 -out ca.key 2048 Generating RSA private key, 2048 bit long modulus .......................+++ ..+++ e is 65537 (0x10001) Enter pass phrase for ca.key: Verifying - Enter pass phrase for ca.key:
生成私有Key和CSR(Certificate Signing Request)
1 2 3 4 5 6 7 8 9
shell> openssl genrsa -des3 -out server.key 2048 Generating RSA private key, 2048 bit long modulus ...................+++ ................................+++ e is 65537 (0x10001) Enter pass phrase for server.key: Verifying - Enter pass phrase for server.key: shell> openssl req -new -key server.key -out server.csr -subj "/C=CN/ST=China/L=HangZhou/O=CnSixi Inc./OU=Web Security/CN=JiangTianbei" Enter pass phrase for server.key:
用CA加密Key
1 2 3
shell> openssl rsa -in ca.key -out server.key Enter pass phrase for ca.key: writing RSA key
location / { ### 代理的地址 ## proxy_pass http://member.aoshiwei.com; ### force timeouts if one of backend is died ## proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;