iT邦幫忙

1

關於使用certbot-auto (Let's Encrypt SSL)新增網域問題?

大家好
我使用certbot-auto自動設定,已把www.abc.org.tw設定好SSL網域憑證,並正常使用。
現在要新增www.abc.com,下完以下指令
sudo ./certbot-auto --apache --cert-name
www.abc.org.tw
-d www.abc.org.tw
-d www.abc.com
出現
Failed redirect for www.abc.org.tw
Unable to set enhancement redirect for www.abc.org.tw
Unable to find corresponding HTTP vhost; Unable to create one as intended addresses conflict; Current configuration does not support automated redirection

我的主機CENTOS6 apache2.2
請問這哪個環節出了問題?或是我應該先執行什麼步驟呢? 謝謝

angelsu00 iT邦新手 5 級 ‧ 2019-07-18 14:44:38 檢舉
新增ww.abc.com 而已
幹嘛還要-d www.abc.org.tw
不明
【**此則訊息已被站方移除**】
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 個回答

0
echochio
iT邦高手 1 級 ‧ 2019-07-21 07:22:41
最佳解答

你的 apache 有這個 www.abc.org.tw domain 與 www.abc.com domain 吧 ?
DNS 可管這兩個 domain 是嗎 ?
然而你有重新申請 多域名證書嗎 ?
我習慣用 standalone 與 email 申請 ...

./letsencrypt-auto certonly --standalone --email echochio@test.com
--agree-tos
-d www.abc.org.tw
-d www.abc.com

之前做的給您參考希望有幫到您
https://www.echochio.nctu.me/2016/11/letsencrypt/

giorno63 iT邦新手 5 級 ‧ 2019-07-22 12:47:41 檢舉

謝謝您

giorno63 iT邦新手 5 級 ‧ 2019-07-22 12:54:36 檢舉

HELLO~@echochio 請教一下, 我的apache目前是www.abc.org.tw,所以要先新增www.abc.com虛擬主機,在來設定SSL嗎?

echochio iT邦高手 1 級 ‧ 2019-07-22 13:45:58 檢舉

沒有那網域web 當然沒法新增 , 當然也可用 DNS 新增方式 .....
可以沒web 可以用 standalone 方式新增
之前有試過再增加新的網域要用 "新加" , 用 "更新" 不可 ...

如果你不怕麻煩就將新的 網域新加一個證書 , 與舊的網域分開這是可以的

我要發表回答

立即登入回答