nginx_CA 인증서 생 성

nginx 자체 CA 인증서 만 들 기
//   ,             、  
#        
openssl genrsa -out server.key 1024
#        
openssl rsa -in server.key -pubout -out server.pem

//   ,   CA   
#   CA   
openssl genrsa -out ca.key 1024
#X.509 Certificate Signing Request (CSR) Management.  ca      
#        。Common Name       
openssl req -new -key ca.key -out ca.csr

#X.509 Certificate Data Management.      ca  
openssl x509 -req -in ca.csr -signkey ca.key -out ca.crt

//   ,        
#        CA         ,                  CSR   
openssl req -new -key server.key -out server.csr
#     CA       ,       CA         ,         CA      
openssl x509 -req -CA ca.crt -CAkey ca.key -CAcreateserial -in server.csr -out server.cr

좋은 웹페이지 즐겨찾기