Matty9191 / ssl-cert-check

Send notifications when SSL certificates are about to expire.
GNU General Public License v2.0
735 stars 288 forks source link

ERROR: The file named /var/tmp/cert.Y3yZfo is unreadable or doesn't exist #60

Closed ejazhashmi closed 5 years ago

ejazhashmi commented 5 years ago

Hi I have 30 domains in the list and when i run the following command

ssl-cert-check -a -f /home/ddevops/status/ssldomains

Getting this error ERROR: The file named /var/tmp/cert.Y3yZfo is unreadable or doesn't exist

Regards Syed Ejaz

ejazhashmi commented 5 years ago

Moreover is there any limits of domains ?

debmind commented 5 years ago

I am also getting the same problem, how to resolve this?

Matty9191 commented 5 years ago

Can you send me one or domains that are triggering this error? This typically occurs because openssl was unable to create the file or extract the certificate.

ejazhashmi commented 5 years ago

@Matty9191 my issue was resolve, there was an extra space in the list of domains 📟

tsaukam commented 3 years ago

I'm getting the same issue when using Cygwin. Not sure if Cygwin is supported or not but ssl-cert-check is a nice tool for us who's batching on Windows and needing something to lookup cert expiry.

For testing, I've created a list and added www.yahoo.com 443 and www.google.com 443 (line-by-line), it will resolve the first cert but the subsequent site will fail.

Host Issuer Status Expires Days


ERROR: The file named /var/tmp/cert.5CxH0r is unreadable or doesn't exist is validease check to make sure the certificate for www.yahoo.com:443 www.google.com:443 Google Trust Serv Valid Mar 30 2021 57

tsaukam commented 3 years ago

Found the solution. Have to convert the list i.e. ssldomains from DOS format to Unix format.

Using notepad++ Edit -> EOL Conversion -> Unix (LF)

gilbertosoareslopes commented 2 years ago

Hello, I am also getting the same problem, how to resolve this?