2
我正在嘗試爲使用certutil運行Sun Webserver 6.1的測試Web服務器創建一個自簽名證書。我願意使用keytool或openssl,如果有人有更好的Sun Webserver的使用說明。創建SSL證書時出現問題
這裏是我使用的命令:
certutil -S -P "https-myWebapp-" -d . -n myCA -s "CN=myWebserver.com CA,OU=myCompany,C=US" -x -t "CT,CT,CT" -m 102 -v 301 -5
,我選擇選項5 - SSL CA和「是」的關鍵擴展問題。 CA已成功創建。現在,我已經創建的證書頒發機構,我嘗試用以下命令簽署實際證書:
certutil -S -P "https-myWebapp-" -d . -n myServer -s "CN=myWebserver.com,C=US" -c myCA -t "u,u,u" -m 102 -v 300 -5
在的certutil提示,我選擇選項1創建啓用關鍵擴展一個SSL服務器。這會產生以下錯誤:
certutil: could not obtain certificate from file: You are attempting to import a cert with the same issuer/serial as an existing cert, but that is not the same cert.
我做錯了什麼?我認爲我可能有一個失敗的SSL證書,但運行certutil -L -d時出現以下情況。 -P「HTTPS-myWebapp-」
Certificate Nickname Trust Attributes SSL,S/MIME,JAR/XPI myCA CTu,Cu,Cu