iT邦幫忙

0

請問 ngnix 如何使用 iis 的 ssl

  • 分享至 

  • xImage

舉例目前 DMZ 上安裝 ngnix 但是SSL證書不安裝在上,安裝在反向代理的 IIS server 上
nginx 只做轉發動作
目前做

server{
    port 443;
    location / {
        iis_server_ip
    }
}

會得到 This site can’t provide a secure connection 錯誤

看更多先前的討論...收起先前的討論...
在轉發當下就需要有証書。不可能轉發後再拿証書。
如果真能這樣子,証書根本就沒用處。
望空 iT邦新手 2 級 ‧ 2024-09-12 17:07:39 檢舉
反了,證書要塞nginx身上
froce iT邦大師 1 級 ‧ 2024-09-13 09:17:10 檢舉
證書一定是放在跟外界接觸的第一台web server
小MIS iT邦研究生 1 級 ‧ 2024-09-13 15:12:48 檢舉
謝謝您,目前放在 nginx 解決
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 個回答

0
by2048
iT邦高手 1 級 ‧ 2024-09-13 11:42:32
最佳解答

windows的證書 pfx檔案,可以轉成nginx用的pem及key檔
openssl pkcs12 -in server.pfx -out server.pem
openssl rsa -in server.pem -out server.key
再到nginx.conf設定即可

各種不同系統安裝憑證請參考
https://publicca.hinet.net/SSL_download.htm

我要發表回答

立即登入回答