나는 같은 문제가 있었다. 제 경우에는 digitalocean과 nginx를 사용했습니다.
먼저 digitalocean에서 도메인 example.app과 하위 도메인 dev.exemple.app을 설정했습니다. 둘째, godaddy에서 두 개의 SSL 인증서를 구입했습니다. 마지막으로 nginx에서 두 개의 도메인을 구성하여 다음 스 니펫과 함께 두 개의 SSL 인증서를 사용했습니다.
내 example.app 도메인 구성
server {
listen 7000 default_server;
listen [::]:7000 default_server;
listen 443 ssl default_server;
listen [::]:443 ssl default_server;
root /srv/nodejs/echantillonnage1;
# Add index.php to the list if you are using PHP
index index.html index.htm index.nginx-debian.html;
server_name echantillonnage.app;
ssl_certificate /srv/nodejs/certificatSsl/widcardcertificate/echantillonnage.app.chained.crt;
ssl_certificate_key /srv/nodejs/certificatSsl/widcardcertificate/echantillonnage.app.key;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
proxy_pass http://127.0.0.1:8090;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
#try_files $uri $uri/ =404;
}
}
내 dev.example.app
server {
listen 7000 default_server;
listen [::]:7000 default_server;
listen 444 ssl default_server;
listen [::]:444 ssl default_server;
root /srv/nodejs/echantillonnage1;
# Add index.php to the list if you are using PHP
index index.html index.htm index.nginx-debian.html;
server_name dev.echantillonnage.app;
ssl_certificate /srv/nodejs/certificatSsl/dev/dev.echantillonnage.app.chained.crt;
ssl_certificate_key /srv/nodejs/certificatSsl/dev/dev.echantillonnage.app.key;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
proxy_pass http://127.0.0.1:8091;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
#try_files $uri $uri/ =404;
}
}
내가 시작 때 https://dev.echantillonnage.app을 , 나는 얻고 있었다
Fix CURL (51) SSL error: no alternative certificate subject name matches
내 실수는 아래 두 줄
listen 444 ssl default_server;
listen [::]:444 ssl default_server;
나는 이것을 다음과 같이 변경해야했습니다.
listen 443 ssl;
listen [::]:443 ssl;