今天在全新的 VM 中安裝 Apache 2.2.17 要 Enable SSL , 做到 Apache\bin>openssl req -new -key mybase.key -x509 -out svr01.crt 這個步驟時出問題 , 錯誤訊息 : Unable to load config info from /usr/local/ssl/openssl.cnf

openssl_err1

拜了 Google 大神 , 有人說這樣下指令可以解 : Apache\bin>openssl req -config C:\apache\config\openssl.cnf -new -key mybase.key -x509 -out svr01.crt , 但是我的遇到的狀況還是無解 :



• error on line -1 of C:\apache\config\openssl.cnf

• 2780:error:02001003:system library:fopen:No such process:.\crypto\bio\bss_file.c :126:fopen('C:\apache\config\openssl.cnf','rb')

• 2780:error:2006D080:BIO routines:BIO_new_file:no such file:.\crypto\bio\bss_file .c:129:

• 2780:error:0E078072:configuration file routines:DEF_LOAD:no such file:.\crypto\conf\conf_def.c:197:

openssl_err2

就覺得很奇怪為什麼我之前的 VM 沒問題 , 比較了兩個 VM 後發現 , 之前的 VM 沒有問題是因為我誤打誤撞剛好安裝了 OpenSSL v1.0.0c (之前的 VM 我安裝的 Apache 2.2.17 已內含 OpenSSL v0.9.8o , 但是我不知道 , 等到我另外安裝了 OpenSSL v1.0.0c 後才發現已有內含的 OpenSSL).

後來在這個 VM 裡安裝及設定 OpenSSL v1.0.0c 後就沒有問題了 !!

arrow
arrow
    全站熱搜

    Jump 發表在 痞客邦 留言(0) 人氣()