After going through the necessary steps to create my letsencrypt cert on a Mac OSX, I can’t seem to get the cert uploaded to AWS. I’m not certain if this is an OSX issue or a LetsEncrypt issue.
I receive this message after going through the process:
- Congratulations! Your certificate and chain have been saved at /etc/letsencrypt/live/www.example.com/fullchain.pem. Your cert will expire on 2016-04-06. To obtain a new version of the certificate in the future, simply run Let's Encrypt again.
Then I use the aws cli to upload the cert:
❯ aws iam upload-server-certificate \ ❯❯ --server-certificate-name www.example.com \ ❯❯ --certificate-body file:///etc/letsencrypt/live/www.example.com/cert.pem \ ❯❯ --private-key file:///etc/letsencrypt/live/www.example.com/privkey.pem \ ❯❯ --certificate-chain file:///etc/letsencrypt/live/www.example.com/chain.pem \ ❯❯ --path /cloudfront/
The response is:
Error parsing parameter '--certificate-body': Unable to load paramfile file:///etc/letsencrypt/live/www.example.com/cert.pem: [Errno 13] Permission denied: '/etc/letsencrypt/live/www.example.com/cert.pem'
If I just created the file successfully, why can I not access it?