EricFromCanada / ericfromcanada.github.io

In which I write things that others may find useful.
https://ericfromcanada.github.io
1 stars 0 forks source link

Import references README #1

Closed Peggaweng closed 4 years ago

Peggaweng commented 4 years ago

Hi,

I am trying out your really cool script to import the certificates to the keychain and for some reason I get this

Error opening input file /etc/letsencrypt/live/README/cert.pem /etc/letsencrypt/live/README/cert.pem: Not a directory Unable to delete certificate matching "-t"security: Error reading infile /etc/letsencrypt/live/README/letsencrypt_sslcert.p12: Not a directory Unable to delete certificate matching "-t"1 identity imported.

Why is it trying to read from the README as a path?

Can you help please?

Thanks in advance

EricFromCanada commented 4 years ago

The line for PEM_FOLDER in /etc/letsencrypt/live/* iterates through each item in /etc/letsencrypt/live, but it assumes everything in there is a folder. Apparently cerbot puts a README in there now. Move that file elsewhere and it should work. Later I'll look into modifying it so it only iterates through directories.

Peggaweng commented 4 years ago

Thank you 😊