Attaching SSL certificate to AWS Elastic BeanStalk's single instance environment Step 1: Create a ssl certificate Go to this link to create a free ssl certificate Create folders .well-known > acme-challenge and put the file which you got while creating a ssl above eg. 2elaFuIeUlvdNUGhnGa3A4NLSPYM21AyK7uHHZNc_s0 The website will need to confirm that you are the legitimate user of the domain for which you are claiming the ssl certificate. To verify, you can go to your node server and add app.get('/.well-known/acme-challenge/2elaFuIeUlvdNUGhnGa3A4NLSPYM21AyK7uHHZNc_s0', function (req, res) { res.sendFile(__dirname + '/.well-known/acme-challenge/2elaFuIeUlvdNUGhnGa3A4NLSPYM21AyK7uHHZNc_s0'); }); Download the certificates Step 2: Upload the ssl certificate to EBS environment Create a folder .ebextensions Inside this folder, create a file called https-instance.config and put the following contents Resource...