SSL Certificate 만들기

SSL Certificate 만들기

NGINX나 SQUID에서 사용할 수 있는 SSL Certificate를 만들어보자.


To create a private key, enter:
# openssl genrsa -des3 -out 1024
Sample outputs:

Fig.01: OpenSSL - Create a Private Key

To create a CSR (Certificate Signing Request):
# openssl req -new -key -out
Sample outputs:

Fig.02: OpenSSL - Create a CSR (Certificate Signing Request)

Please enter your domain name that you want to associate with the certificate. For example, for the Command Name I entered as I’m going to use

How Do I Remove The Passphrase? (Optional)

You can remove the passphrase so nginx can start on boot without entering the passphrase. Type the following commands
# cp openssl rsa -in -out
Finally, you should see three files as follows (note I’ve created all files as vivek user and than moved lb0 and lb1 server /usr/local/ngnix/conf/ssl/ directory):
# ls -l
Sample outputs:

Fig.03: All the files in ssl directory

# openssl x509 -req -days 365 -in -signkey -out
Sample outputs:

Fig.04: Generating The Actual Self-signed  SSL Certificate

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.