VirtualHostMonster Setup Sample その2
2002-05-23 - hoihoi-p
[ ca ] default_ca = CA_default # 標準で使用するCAセクション名です。
[ CA_default ] dir = ./demoCA # CA情報が保管されるディレクトリ名になります。好きなように書き換えてください。
[ req_distinguished_name ] # ここ以下が,鍵作成時のデフォルトになります。何回も同じ入力を要求されますので、自分に合わせて書き換えます。 countryName = Country Name (2 letter code) countryName_default = JP ←この値を変えるとデフォルト値が変わる countryName_min = 2 countryName_max = 2
stateOrProvinceName = State or Province Name (full name) stateOrProvinceName_default = fukuoka
localityName = Locality Name (eg, city) localityName_default = fukuoka
0.organizationName = Organization Name (eg, company) 0.organizationName_default = hoihoi-p site
# we can do this but it is not needed normally :-) #1.organizationName = Second Organization Name (eg, company) #1.organizationName_default = World Wide Web Pty Ltd
organizationalUnitName = Organizational Unit Name (eg, section) organizationalUnitName_default = member
commonName = Common Name (eg, your name or your server\'s hostname) commonName_max = 64
emailAddress = Email Address emailAddress_max = 40
# This is OK for an SSL server. # 鍵を発行する対象を選択します。 nsCertType = server # サーバー鍵用 # nsCertType = client, email # クライアント鍵用
| 作業内容 | パスフレーズ | 立場 |
|---|---|---|
| CAの鍵ペア生成 | CA | CA管理者 |
| CAの公開鍵証明書の発行 | CA | CA管理者 |
| ユーザーの鍵ペア生成 | ユーザー | ユーザー (今回の場合CA管理者が代行したことになります。) |
| ユーザーの公開鍵証明書の発行 | CA | CA管理者 |
Email Address []:hoihoi-p@example.com
Please enter the followingextraattributes to be sent with your certificate request A challenge password []: An optional company name []: Request (and private key) is in newreq.pem
| Domain | Path |
| example.com | /zope/ |
RewriteMap lowercase int:tolower RewriteRule ^/zope/(.*) http://localhost:8080/VirtualHostBase/http/example.com:80/zope/VirtualHostRoot/_vh_zope/$1 [L,P]
<LocationMatch "^/zope/(.)manage(.)"> SSLRequireSSL AuthType Basic AuthName UserCheck AuthUserFile /etc/httpd/conf/passwd require valid-user <LocationMatch>
<IfDefine HAVE_SSL> Listen 443 SSLSessionCache shm:/var/cache/ssl_gcache_data(524288)
<VirtualHost _default_:443> DocumentRoot /home/httpd/html SSLEngine on
SSLCipherSuite ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL SSLCertificateFile /etc/httpd/conf/ssl.crt/server-cert.pem SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server-req.pem SSLCACertificateFile /etc/httpd/conf/ssl.crt/cacert.pem SSLVerifyClient 2 SSLVerifyDepth 1
<Files ~ "\.(cgi|shtml)$"> SSLOptions +StdEnvVars </Files>
SetEnvIf User-Agent ".MSIE." nokeepalive ssl-unclean-shutdown CustomLog /var/log/httpd/ssl_request_log \ "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
<Directory /> AllowOverride None Options +ExecCGI Order allow,deny Allow from all SSLRequireSSL AuthType Basic AuthName UserCheck AuthUserFile /etc/httpd/conf/passwd <Limit GET POST> require valid-user </Limit> </Directory>
RewriteMap lowercase int:tolower ho RewriteRule /(.*)$ http://localhost:8080/VirtualHostBase/https/example.com:443/VirtualHostRoot/$1 [P,L] </VirtualHost>
</IfDefine>
| Last edited Sun, 15 Apr 2007 22:14:41 +0900 | Edit this page |