yhuang95411 回復于:2004-12-19 10:53:02 | ||||||||||||||
libghttp-devel-1.0.9-5
httpd-devel-2.0.40-8 httpd-manual-2.0.40-8 httpd-2.0.40-8 libghttp-1.0.9-5 | ||||||||||||||
yhuang95411 回復于:2004-12-19 11:12:15 | ||||||||||||||
澄清一下:
所用系統為Red Hat Linux 8.0. 若使用其它Linux, rpm 版本會有些差別, 但步驟都是一樣的. | ||||||||||||||
FunBSD 回復于:2005-01-05 09:35:36 | ||||||||||||||
我幫你頂一下 | ||||||||||||||
wingger 回復于:2005-01-05 13:21:18 | ||||||||||||||
Make sure OpenSSL is really installed and in your PATH. But some commands even work ok when you just run the ``openssl'' program from within the OpenSSL source tree as ``./apps/openssl''.
Create a RSA private key for your Apache server (will be Triple-DES encrypted and PEM formatted): [code:1:ba56aab0e6]$ openssl genrsa -des3 -out server.key 1024[/code:1:ba56aab0e6] Please backup this server.key file and remember the pass-phrase you had to enter at a secure location. You can see the details of this RSA private key via the command: [code:1:ba56aab0e6]$ openssl rsa -noout -text -in server.key[/code:1:ba56aab0e6] And you could create a decrypted PEM version (not recommended) of this RSA private key via: [code:1:ba56aab0e6]$ openssl rsa -in server.key -out server.key.unsecure[/code:1:ba56aab0e6] Create a Certificate Signing Request (CSR) with the server RSA private key (output will be PEM formatted): [code:1:ba56aab0e6]$ openssl req -new -key server.key -out server.csr[/code:1:ba56aab0e6] Make sure you enter the FQDN ("Fully Qualified Domain Name") of the server when OpenSSL prompts you for the "CommonName", i.e. when you generate a CSR for a website which will be later aclearcase/" target="_blank" >ccessed via https://www.foo.dom/, enter "www.foo.dom" here. You can see the details of this CSR via the command [code:1:ba56aab0e6]$ openssl req -noout -text -in server.csr[/code:1:ba56aab0e6] 其它一樣,在REDHAT linux 9下通過,呵呵, 這些都是用系統默認的apache,openssl,mod_ssl裝的 | ||||||||||||||
wingger 回復于:2005-01-05 13:25:33 | ||||||||||||||
停止 httpd:[失敗]
啟動 httpd:Apache/2.0.40 mod_ssl/2.0.40 (Pass Phrase Dialog) Some of your private key files are encrypted for security reasons. In order to read them you have to provide us with the pass phrases. Server new.host.name:443 (RSA) Enter pass phrase: Ok: Pass Phrase Dialog successful. [失敗] 為什么會這樣? | ||||||||||||||
wingger 回復于:2005-01-05 13:38:19 | ||||||||||||||
剛才沒修改ssl.conf文件,修改后啟動如下錯誤
啟動 httpd:Apache/2.0.40 mod_ssl/2.0.40 (Pass Phrase Dialog) Some of your private key files are encrypted for security reasons. In order to read them you have to provide us with the pass phrases. Server new.host.name:443 (RSA)#錯誤的輸入密碼 Enter pass phrase: Apache:mod_ssl:Error: Pass phrase incorrect (5 more retries permitted). Enter pass phrase:#密碼錯誤 1077372096:error:0D094068:asn1 encoding routines:d2i_ASN1_SET:bad tag:a_set.c:179: 1077372096:error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag:tasn_dec.c:939: 1077372096:error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error:tasn_dec.c:304:Type=RSA 1077372096:error:0D09A00D:asn1 encoding routines:d2i_PrivateKey:ASN1 lib:d2i_pr.c:96: Apache:mod_ssl:Error: Pass phrase incorrect (4 more retries permitted). Enter pass phrase:#正解的密碼 [失敗] | ||||||||||||||
Yarco 回復于:2005-01-07 13:22:50 | ||||||||||||||
這個我試過.就是有些問題不明白.
1.CA證書如何制作. 似乎單純用openssl無法制作自簽名的CA證書.我看了很多網上的資料,說是apache附帶有一個sign.sh的腳本.但我找來找去找不到. 2.如何讓服務器重新啟動的時候,不輸入密碼Pass Phrase 因為默認的https似乎不需要輸入密碼的. 想來重啟apache應該有什么方法不需要輸入密碼才對... | ||||||||||||||
wingger 回復于:2005-01-07 13:28:04 | ||||||||||||||
sign.sh是mod_ssl自帶的,但www.modssl.org上的mod_ssl只支持apache1的,我這里有一個sign.sh文件,如何你要的話,我可以貼出來,我用過sign.sh,不過簽不了證書,至少我沒簽成功過 | ||||||||||||||
Yarco 回復于:2005-01-07 14:05:02 | ||||||||||||||
暈...害我啊
[quote:3414839e85]不過簽不了證書,至少我沒簽成功過[/quote:3414839e85] 簽不了也給我.:) | ||||||||||||||
ghostwx 回復于:2005-01-07 14:06:18 | ||||||||||||||
用openssl可以的
openssl genrsa -des3 -rand file1:file2:file3 -out yourca.key file1-3 是隨意任何文件 openssl req -new -key yourca.key -out yourca.csr 產生證書請求 openssl x509 -req -days 30 -in yourca.csr -signkey yourca.key -out yourca.cert 產生證書 note:你需要有一個openssl.cnf文件,如果沒有創建一個,用-config 指明,具體格式可以自己到www.openssl.org看看 | ||||||||||||||
wingger 回復于:2005-01-07 14:19:58 | ||||||||||||||
openssl的參數-signkey就可簽證,不需sign.sh呵呵 | ||||||||||||||
ataman 回復于:2005-03-23 23:36:06 | ||||||||||||||
我的https成功了,能上;ca認證什么的也成功了。但最不爽最關鍵的是:
客戶端登陸網站時證書驗證不通過!我基本上都是按照樓主和其他資料作的。 我是在自己的機器上做試驗的,服務器客戶都在一臺機器上。作了好幾個pfs的證書,登錄網站時沒一個能登上的。 winxp pro sp2, apache 2.0.53 ,openssl 0.97e(mod_ssl,openssl.cnf都有) 國家我都是cn,所有的域名都是www.xxx.com 郵箱xxx@xxx.com,部門都是ga,小部門都是rs.....所有文件所要填的信息都相同。我都是按照樓主的步驟來的,可能是什么問題呢? 我自始至終都是用1個用戶登陸的windows。 | ||||||||||||||
ioly 回復于:2005-04-28 08:52:12 | ||||||||||||||
我也出現了
停止 httpd:[失敗] 啟動 httpd:Apache/2.0.40 mod_ssl/2.0.40 (Pass Phrase Dialog) Some of your private key files are encrypted for security reasons. In order to read them you have to provide us with the pass phrases. Server new.host.name:443 (RSA) Enter pass phrase: Ok: Pass Phrase Dialog successful. [失敗] 的錯誤,求助! | ||||||||||||||
squall1 回復于:2005-04-30 23:37:13 | ||||||||||||||
???還是不要用系統自帶的那些包好。我的一切正常。
|
|