iT邦幫忙

0

關於centos+Lighttpd+openssl

  • 分享至 

  • xImage

我用這個指令產生的憑證是128位元,那請問我想要產生一個256位元的該怎麼做
openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 個回答

2
weiclin
iT邦高手 4 級 ‧ 2014-11-14 05:51:53
最佳解答

這個跟那個無關
用多少 bit 加密是看你 server 啟用了哪些 cipher suite, 而且也要你的瀏覽器有支援
你可以用這個指令查看 cipher suite:

<pre class="c" name="code">openssl ciphers -v

然後從裡面找到 Enc=....(256) 的, 我隨便列兩個:

<pre class="c" name="code">
AES256-SHA256           TLSv1.2 Kx=RSA      Au=RSA  Enc=AES(256)  Mac=SHA256
AES256-SHA              SSLv3 Kx=RSA      Au=RSA  Enc=AES(256)  Mac=SHA1

設定你的 lighttpd 讓它使用這兩個 cipher suite:

<pre class="c" name="code">
ssl.cipher-list = "AES256-SHA256:AES256-SHA:!aNULL:!eNULL"

大概就這樣...
改完以後到這邊輸入網址測試: https://www.ssllabs.com/ssltest/index.html
如果太多瀏覽器不支援你設定的 cipher suite, 那你可能需要再調整

sheep0000 iT邦新手 5 級 ‧ 2014-11-18 11:15:50 檢舉

有網站可以查詢網頁是否通過SHA2憑證嗎,主要是因為2017年SHA1的憑證失效,並詳細指明需要看哪部分,謝謝

我要發表回答

立即登入回答