5/29/2019

Ubuntu :: Create Cer Intranet

Ubuntu :: Create Cer Intranet
เครื่องเดียว Run 2 Cer intranet.sci.com และ intranet.scivalve.com ต่างกันแค่ชื่อไฟล์

1. Run Code Create Cer.
  1. openssl req -new -x509 -sha256 -days 3650 -nodes -out /etc/apache2/ssl/intranet.sci.com.pem -keyout /etc/apache2/ssl/intranet.sci.com.key

  1. /etc/apache2/ssl# openssl req -new -x509 -sha256 -days 3650 -nodes -out /etc/apache2/ssl/intranet.sci.comvalve.pem -keyout /etc/apache2/ssl/intranet.scivalve.com.key


2. ใส่ข้อมูล
Generating a 1024 bit RSA private key
.........++++++
...++++++
writing new private key to '/etc/apache2/ssl/intranet.scivalve.com.key'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:TH
State or Province Name (full name) [Some-State]:
Locality Name (eg, city) []:
Organization Name (eg, company) [Internet Widgits Pty Ltd]:SCICORPORATION
Organizational Unit Name (eg, section) []:
Common Name (eg, YOUR name) []:intranet.scivalve.com
Email Address []:suwit@scivalve.com


3. Restart apache

ได้ไฟล์ key, pam ไปใช้งานต่อ อยู่ที่
  1. /etc/apache2/ssl

No comments:

Post a Comment