$ htgiest
-bash: htgiest: command not found
$apt-cache search htdigest
apache2-utils - Apache HTTP Server (utility programs for web servers)
$sudo apt-get install apache2-utils
$cd /etc/apache2
$sudo su
#openssl genrsa -des3 1024 > https.key ←秘密鍵の作成(RSA des3フォーマット,1024bitの鍵)
Enter pass phrase: ←パスフレーズを入力
Verifying - Enter pass phrase: ←再入力
# openssl req -new -key https.key >https.key.csr ←公開鍵の作成
Enter pass phrase for https.key: ←先ほどのパスフレーズを入力
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----↓ここからは公開が基の情報を入力
Country Name (2 letter code) [AU]:ja ←国名(二文字のコードでja, us, uk, krなど)
State or Province Name (full name) [Some-State]:tokyo ←都道県名
Locality Name (eg, city) []: ←市町村名(今回は空白)
Organization Name (eg, company) [Internet Widgits Pty Ltd]:hiroyky ←組織名
Organizational Unit Name (eg, section) []: ←担当部署名
Common Name (e.g. server FQDN or YOUR name) []:Happy Server ←サイト名
Email Address []:xxxxx@mail.jp ←メールアドレス
Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []: ←証明書破棄の際のパスワード(今回は空白)
An optional company name []: ←組織名2(今回は空白)
# openssl x509 -in https.key.csr -days 36500 -req -signkey https.key > https.key.crt ←証明書の発行(x509フォーマット,有効期限は36500日つまり100年←おい!笑)
Signature ok
subject=/C=ja/ST=tokyo/O=yokoyama/CN=Asuna/emailAddress=ykym_hirokazu@yahoo.co.jp
Getting Private key
Enter pass phrase for https.key: ←パスフレーズ入力
$sudo service apache2 restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
$sudo a2enmod proxy
$sudo a2enmod proxy_http
$sudo emacs /etc/apache2/mods-available/proxy.conf
AddDefaultCharset off
Order deny,allow
Allow from all
# #Require local