NEWBIE : No access to /etc/letsencrypt/live/my-domain.com


#1

My domain is: www.breuhschis.com hosted on Heroku

I ran this command: I used Certbot and ran:

sudo certbot certonly --manual

I enabled the verification on Heroku and got a success message

It produced this output:

Generating key (2048 bits): /etc/letsencrypt/keys/0002_key-certbot.pem
Creating CSR: /etc/letsencrypt/csr/0002_csr-certbot.pem

IMPORTANT NOTES:

  • Congratulations! Your certificate and chain have been saved at
    /etc/letsencrypt/live/www.breuhschis.com/fullchain.pem. Your cert
    will expire on 2017-05-08. To obtain a new or tweaked version of
    this certificate in the future, simply run certbot again. To
    non-interactively renew all of your certificates, run “certbot
    renew”

  • If you like Certbot, please consider supporting our work by:

    Donating to ISRG / Let’s Encrypt: https://letsencrypt.org/donate
    Donating to EFF: https://eff.org/donate-le

My problem
Only the /etc/letsencrypt/csr/0002_csr-certbot.pem exists

There is nothing in /etc/letsencrypt/keys/0002_key-certbot.pem (empty)
Nothing in /etc/letsencrypt/live/www.breuhschis.com/ where I am supposed to get the fullchain.pem, the cert.pem, the privkey.pem and the chain.pem files…

When I run: cd /etc/letsencrypt/live
I get: cd: permission denied: /etc/letsencrypt/live

When I look at the folder live directly (sublime for example), it is empty.

I tried 3 times (hence the 0002) by renewing it.

So, I basically only get the certificate (in /etc/letsencrypt/csr/0002_csr-certbot.pem), below :

-----BEGIN CERTIFICATE REQUEST-----
MIICkjCCAXoCAQIwHTEbMBkGA1UEAwwSd3d3LmJyZXVoc2NoaXMuY29tMIIBIjAN
BgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4x57yw6q3IT+bnTpu9odjK5S82Zo
lnuvzK9gbJmWd3NBt74wRfylZqWT8TTEE3lhGjn09Y0czn0FpKtNiwI6xwvvxo4q
I4Je5v0VZs7WESTp9HSNZZnQ25eNkPDNwJ5cE6Y0cVFnElf76m/bGIvubQP32nj2
4OHnDpkynJJGljRzVHjMR6sfFcCvOWR59cv7usWQzU65Th7q6B+2eTSJYUbnAJMm
8vxBrtAermy3qlxoa7DRwTJ/Nw2dc9IXd6ZR+T+PK5ewNk/0FCOuvDDP64KYIJO6
OGNM4Q+z0sROAW5rdTM9EgysBtQ9RTn1HoFzAyE3P42AZbDewpehrUFiZwIDAQAB
oDAwLgYJKoZIhvcNAQkOMSEwHzAdBgNVHREEFjAUghJ3d3cuYnJldWhzY2hpcy5j
b20wDQYJKoZIhvcNAQELBQADggEBAH99U5Lm8vH+VXBWNYiQAI3104G4fIZb8u2b
a5AzuzyzkAOJfs+LVfVxTV76xWfUbeaemJJjJ/4QUAPIIABBKlhXMd3fZXgz49g3
rBKVYTMPN4CXFdkrFW5nZiKh+2b/DU14WXiBYQIcfe/hk4KOOiI3M7z8pfbjpE1t
5p1ghMk/v8b/DOyijhKHuwex6jlfJGecgHb+BWXnaJm9JkVevFtPDvLtQnt5/zmO
3UJcCjOud5tbXrGJ/rfw/UQstnVwReld2kgh70KHJjNdtwWdsDS7MP3F8/G4plaA
rzBIyjTMm0QP8MmQ2Uyp/V9QfHb3BpdtlWS86RW3zojBbNW3jnI=
-----END CERTIFICATE REQUEST-----

How is that? What am I doing wrong? I need a key to add the certificate to Heroku …

My operating system is (include version): Mac OS Sierra 10.12

My web server is (include version): I guess Cowboy (heroku)

My hosting provider, if applicable, is: Heroku

I only use the CLI


#2

After trying sudo etc/letsencrypt/live/www.breuhschis.com I can see the desired files.

Now, how can I open them / use them for heroku with heroku certs: add CERT KEY ?!
I get: EACCES: EACCES: permission denied, open ‘/etc/letsencrypt/live/www.breuhschis.com/cert.pem’


#3

I have solved this by running : sudo heroku certs:add /etc/letsencrypt/live/www.breuhschis.com/fullchain.pem /etc/letsencrypt/live/www.breuhschis.com/privkey.pem


#4

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.