動作
Bug #54
已結束
SC
SC
Feature #51: 架設moodle作為課程系統
Bug #53: Install Moodle inside subdomain(moodle.localhost)
SSL certificate issue
Bug #54:
SSL certificate issue
概述
-
https://moodle.localhost
showed error: NET::ERR_CERT_COMMON_NAME_INVALID
Current ssl.conf:
[req]
prompt = no
default_md = sha256
default_bits = 2048
distinguished_name = dn
x509_extensions = v3_req
[dn]
C = TW
ST = Taiwan
L = Taipei
O = Beasincere Com.
OU = IT Department
emailAddress = sashiba042@gmail.com
CN = localhost
[v3_req]
subjectAltName = @alt_names
[alt_names]
DNS.1 = *.localhost
DNS.2 = localhost
IP.1 = 127.0.0.1
SC 是由 Sashiba Chou 於 超過 4 年 前更新
- Generate CA(憑證), follow this instructions
- 安裝憑證
- 放置憑證於(.crt, .key)
D:\installed\xampp\apache\conf\ssl.crt
D:\installed\xampp\apache\conf\ssl.key
- 更新憑證
打開certmgr.msc
刪除舊憑證
安裝新憑證(.crt)
Restart xampp
SC 是由 Sashiba Chou 於 超過 4 年 前更新
- 狀態 從 New 變更為 Closed
- 完成比例 從 0 變更為 100
- ssl.conf
[req]
prompt = no
default_md = sha256
default_bits = 2048
distinguished_name = dn
x509_extensions = v3_req
[dn]
C = TW
ST = Taiwan
L = Taipei
O = Beasincere Com.
OU = IT Department
emailAddress = sashiba042@gmail.com
CN = localhost
[v3_req]
subjectAltName = @alt_names
[alt_names]
DNS.1 = moodle.localhost
DNS.2 = localhost
DNS.3 = *.localhost
IP.1 = 127.0.0.1
- D:\installed\xampp\apache\conf\httpd-ssl.conf
Comment(inside tag )
#####DocumentRoot "D://Code/Web/hoosk_beasincere"
Add
DocumentRoot "D://Code/Web/hoosk_beasincere"
ServerName localhost
SSLEngine on
SSLCertificateKeyFile "conf/ssl.key/server.key"
SSLCertificateFile "conf/ssl.crt/server.crt"
動作