[Question] Một số lỗi khi cài đặt ssl trên Apache 2.26 |
29/03/2008 05:07:27 (+0700) | #1 | 121821 |
centos
Member
|
0 |
|
|
Joined: 28/03/2008 17:13:12
Messages: 219
Offline
|
|
Hi All
Mình đang xây dựng 1 webserver chạy bằng giao thức https://. Mình làm theo tài liệu http://www.securityfocus.com/infocus/1818
Lúc đầu mình config cho nó chạy, sau đó mình chay lại lệnh:
openssl req \
-new \
-x509 \
-days 30 \
-keyout /usr/local/apache2/conf/ssl.key/server.key \
-out /usr/local/apache2/conf/ssl.crt/server.crt \
-subj '/CN=Test-Only Certificate'
Thì nó phát sinh ra lỗi:
[Fri Mar 28 03:44:52 2008] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Mar 28 03:44:52 2008] [warn] RSA server certificate CommonName (CN) `Test-Only Certificate' does NOT match server name!?
[Fri Mar 28 03:44:52 2008] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Mar 28 03:44:52 2008] [warn] RSA server certificate CommonName (CN) `Test-Only Certificate' does NOT match server name!?
Trong khi đó server vẫn đang lắng nghe trên port 80 và 443
[root@localhost ssl.key]# netstat -an | grep 443
tcp 0 0 :::443 :::* LISTEN
[root@localhost ssl.key]# netstat -an | grep 80
tcp 0 0 :::80 :::* LISTEN
[root@localhost ssl.key]#
Khi mở trình duyệt để test thì nó báo lỗi:
you have received an invalid certificate. please contact the server administrator ar email correspondent and give them the following information
you certificate contains the same serial number as another certificate inssued by the cerficate authority. please get a new certificate containing a unique serial number
|
|
|
|
|
|