Permission denied to open certificate file


#1

I began to manually create an ssl certificate and it created them in the file

/etc/letsencrypt/live/domain.com/fullchain.pem however, when I try to view this directory on my computer it shows permission denied.

Any help would be much appreciated. I am using a Ubuntu virtual machine, when I try to open the file it comes up with:

"You do not have the permissions necessary to view the contents of “live”


#2

Did you use sudo when creating the certificate, or allow a script to do so? If so, it is owned by root and you may need to use a root shell or sudo in order to view or change it.

(The operating system will distinguish between things that can be done by an ordinary user and system administration things that require administrative access.)


#3

I ran

./letsencrypt-auto certonly --manual

#4

You should use sudo to view the certificates. (Note that you can’t sudo cd because cd is a shell built-in command. If you need a shell where you can cd into directories that you don’t have permissions for, you can use sudo -s to get a root shell.)


#5

Ah I see, many thanks for the quick and useful information, it seems to be working now.


#6

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