본문 바로가기
운영체제/리눅스

[CentOS] SSL 인증서

by o테리o 2013. 2. 12.

# Generate private key 

openssl genrsa -out sphtest.key 1024 


# Generate CSR 

openssl req -new -key sphtest.key -out sphtest.csr


# Generate Self Signed Key

openssl x509 -req -days 365 -in sphtest.csr -signkey sphtest.key -out sphtest.crt


# Copy the files to the correct locations

cp sphtest.crt /etc/pki/tls/certs

cp sphtest.key /etc/pki/tls/private/sphtest.key

cp sphtest.csr /etc/pki/tls/private/sphtest.csr


출처: http://wiki.centos.org/HowTos/Https