昨天將pem憑證轉成p12之後,再將p12匯入kdb,原本以為這件事可以圓滿落幕了
結果沒想到匯入的憑證竟然沒辦法使用,
會無法使用https連線,error_log一直出現
SSL0208E: SSL Handshake Failed, Certificate validation error.
今天再繼續查是哪邊出問題
弄個SSL憑證沒想到會拖這麼多天,希望能趕快解決
首先,使用以下指令驗證kdb內的憑證
cd /opt/IBM/HTTPServer/bin
gskcapicmd -cert -validate -db /opt/IBM/HTTPServer/cert/test.kdb -stashed
正常情況下會回應ok,
而我的kdb則是有問題的,回應如下:
Additional untranslated info: No certificate chain built
Additional untranslated info: GSKKM_VALIDATIONFAIL_SUBJECT: [Class=]GSKVALMethod::PKIX[Issuer=]CN=ISRG Root X1,O=Internet Security Research Group,C=US[#=]00912b084acf0c18a753f6d62e25a75f5a[Subject=]CN=R3,O=Let's Encrypt,C=US
CTGSK2146W An invalid certificate chain was found.
看起來是指kdb中少了root憑證嗎?
...待續