I can't access privkey.pem

I'm trying to renew the certificate for the website essagrafico.com.br

By placing the command cat /opt/local/etc/letsencrypt/live/ensaiografico.com.br/privkey.pem
in the terminal, it answers me cat: /opt/local/etc/letsencrypt/live/ensaiografico.com.br/privkey.pem: Permission denied.

The same thing was happening with the fullchain.pem folder but I went straight to the finder and allowed access, however, even with access fully released, I can't access the privkey.

I'm on a macos Monterey

Try it with sudo

4 Likes

Thanks!

Could you tell me which command I should use, please? I try sudo /opt/local/etc/letsencrypt/live/ensaiografico.com.br/privkey.pem and it answers sudo: /opt/local/etc/letsencrypt/live/ensaiografico.com.br/privkey.pem: command not found

2 Likes

Umm. He meant to say something like 'try it with

sudo cat /opt/local/etc/letsencrypt/live/ensaiografico.com.br/privkey.pem'

7 Likes

Correct @Buffalo ; thank you clarifying. :slight_smile:

5 Likes

thanks @Bruce5051 and @Buffalo! I solved the problem, sorry for the delay in responding!

4 Likes

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