aws binami 配置免费 ssl

参考链接:https://docs.bitnami.com/aws/faq/administration/generate-configure-certificate-letsencrypt/

# 步骤

bitnami@ip-172-26-15-147:/opt/bitnami/wordpress$ sudo /opt/bitnami/bncert-tool  # 执行命令
----------------------------------------------------------------------------
Welcome to the Bitnami HTTPS Configuration tool.

----------------------------------------------------------------------------
Domains

Please provide a valid space-separated list of domains for which you wish to
configure your web server.

Domain list []: wp.haitian.link  # 列出域名列表,逗号隔开

The following domains were not included: www.wp.haitian.link. Do you want to add them? [Y/n]: n

Warning: No www domains (e.g. www.example.com) or non-www domains (e.g.
www.example.com) have been provided, so the following redirections will be
disabled: non-www to www, www to non-www.
Press [Enter] to continue:
----------------------------------------------------------------------------
Enable/disable redirections

Please select the redirections you wish to enable or disable on your Bitnami
installation.



Enable HTTP to HTTPS redirection [Y/n]: y  # 是否重定向


----------------------------------------------------------------------------
Changes to perform

The following changes will be performed to your Bitnami installation:

1. Stop web server
2. Configure web server to use a free Let's Encrypt certificate for the domains:
wp.haitian.link
3. Configure a cron job to automatically renew the certificate each month
4. Configure web server name to: wp.haitian.link
5. Enable HTTP to HTTPS redirection (example: redirect http://wp.haitian.link to
https://wp.haitian.link)
6. Start web server once all changes have been performed



Do you agree to these changes? [Y/n]: y  # 执行如上6个步骤


----------------------------------------------------------------------------
Create a free HTTPS certificate with Let's Encrypt

Please provide a valid e-mail address for which to associate your Let's Encrypt
certificate.

Domain list: wp.haitian.link

Server name: wp.haitian.link

E-mail address []: mr.liulei@qq.com

The Let's Encrypt Subscriber Agreement can be found at:

https://letsencrypt.org/documents/LE-SA-v1.3-September-21-2022.pdf

Do you agree to the Let's Encrypt Subscriber Agreement? [Y/n]: y


----------------------------------------------------------------------------
Performing changes to your installation

The Bitnami HTTPS Configuration Tool will perform any necessary actions to your
Bitnami installation. This may take some time, please be patient.

----------------------------------------------------------------------------
Success

The Bitnami HTTPS Configuration Tool succeeded in modifying your installation.

The configuration report is shown below.

Backup files:
* /opt/bitnami/apache/conf/httpd.conf.back.202301030925
* /opt/bitnami/apache/conf/bitnami/bitnami.conf.back.202301030925
* /opt/bitnami/apache/conf/bitnami/bitnami-ssl.conf.back.202301030925
* /opt/bitnami/apache/conf/vhosts/wordpress-https-vhost.conf.back.202301030925
* /opt/bitnami/apache/conf/vhosts/wordpress-vhost.conf.back.202301030925

Find more details in the log file:

/tmp/bncert-202301030925.log

If you find any issues, please check Bitnami Support forums at:

https://github.com/bitnami/vms

Press [Enter] to continue:

bitnami@ip-172-26-15-147:/opt/bitnami/wordpress$ echo $?
posted @ 2023-01-03 17:33  Star-Hitian  阅读(74)  评论(0编辑  收藏  举报