Editing
Elastic Beanstalk Security Certificates Archived November 2020
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Installing LE Certificates with nginx === The following instructions originate from [https://piratefache.ch/lets-encrypt-with-amazon-elastic-beanstalk/ Let's Encrypt with AWS Elastic Beanstalk] by “PirateFaché”. This installs LE certificates on nginx. <p class="alert alert-warning">The following directives in the .ebextensions file will ''NOT'' change the configuration of the nginx server. See [[#Cannot_create_files_in_.2Fetc.2Fnginx.2Fconf.d_with_.ebextensions|Troubleshooting]] for details.</p> Creating `/etc/nginx/conf.d/https_custom.conf` allows requests to port 443 to access the LE certificates <syntaxhighlight lang="yaml"> # HTTPS server server { listen 443 default ssl; server_name localhost; error_page 497 https://$host$request_uri; ssl_certificate /etc/letsencrypt/live/ebcert/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/ebcert/privkey.pem; ssl_session_timeout 5m; ssl_protocols TLSv1.1 TLSv1.2; ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH"; ssl_prefer_server_ciphers on; # Include the Elastic Beanstalk generated locations include conf.d/elasticbeanstalk/*.conf; } </syntaxhighlight> It’s necessary to create a symbolic link from the “ebcert” directory specified in the file above with the actual directory containing the LE certificates: <pre> $ sudo ln -sf /etc/letsencrypt/live/wiki.dbarchowsky.com /etc/letsencrypt/live/ebcert </pre> Restart nginx <pre> $ sudo systemctl restart nginx </pre> At this point it should be possible to make https requests to the site: <pre> $ curl https://mydomain.com </pre>
Summary:
Please note that all contributions to Littledamien Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Littledamien Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information