LoginSignup
0
1

More than 5 years have passed since last update.

AWS EC2にLet's Encryptを導入【ログ】

Posted at

AWS EC2にLet's Encryptを導入

3ヶ月だけ無料で使える証明書です。
下記のサイトをみてやってみたのですが、ハマったところがあったので
そちらのメモ。
そして作業ログを掲載しておきます。
参考サイト:https://qiita.com/MashMorgan/items/56498f276c54406b1928

ハマったところ

3.証明書の発行
# certbot-auto certonly --webroot -w /var/www/html -d ドメイン名 --email hoge@example.com --debug

作業ログ

    1  cd /var/log/letsencrypt/
    2  ll
    3  cat letsencrypt.log
    4  cd /var/www/html/
    5  ls -la
    6  cd .well-known/
    7  ls
    8  ls -la
    9  cd ./
   10  cd
   11  cd /etc/httpd/conf.d/
   12  ls
   13  ll
   14  mv EC.conf EC.conf.b
   15  /etc/init.d/httpd restart
   16  cd /etc/letsencrypt/live/
   17  ls
   18  cd ec.neko-server.com/
   19  ls
   20  ll
   21  cat README 
   22  cd /etc/httpd/conf.d/
   23  ls
   24  ll
   25  cat ssl.conf
   26  ll
   27  cat ssl.conf.bk_20170730|grep -v "#"
   28  vi EC.conf.b 
   29  mv EC.conf.b EC.conf
   30  vi EC.conf 
   31  /etc/init.d/httpd restart
   32  cat EC.conf 
   33  sudo vim  EC.conf 
   34  sudo vim ec.include
   35  ls
   36  sudo vim  EC.conf 
   37  vim EC.conf.bk_20170731
   38  ls
   39  cp EC.conf EC.conf.bk_20170731 
   40  sudo cp EC.conf EC.conf.bk_20170731
   41  ls
   42  cat ec.include
   43  sudo vim  EC.conf
   44  /etc/init.d/httpd restart
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1