Matty9191 / ssl-cert-check

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

Unable to load the certificate error while running the ssl-cert-check script. #111

Open gcdreamer123 opened 3 years ago

gcdreamer123 commented 3 years ago

I am getting below error while running ssl-cert-check script on couple of domains. Any help much appreciated.

Getting below error:

unable to load certificate 140208006047560:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:703:Expecting: TRUSTED CERTIFICA TE unable to load certificate 140696656316232:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:703:Expecting: TRUSTED CERTIFICA TE unable to load certificate 139784969066312:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:703:Expecting: TRUSTED CERTIFICA TE unable to load certificate 139748908087112:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:703:Expecting: TRUSTED CERTIFICA TE m3.ihost.getbills.com:443 Expired -2459473 unable to load certificate 140549511137096:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:703:Expecting: TRUSTED CERTIFICA TE unable to load certificate 139692167886664:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:703:Expecting: TRUSTED CERTIFICA TE unable to load certificate 140211529897800:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:703:Expecting: TRUSTED CERTIFICA TE unable to load certificate 139946727470920:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:703:Expecting: TRUSTED CERTIFICA TE cert-m3.ihost.getbills.com:443 Expired -2459473

gcdreamer123 commented 3 years ago

we are using Version: 3.29 also tried with latest Version 4.14 getting same error message.

Matty9191 commented 3 years ago

It is working correctly here:

$ ./ssl-cert-check -s m3.ihost.getbills.com -p 443

Host                                            Status       Expires      Days
----------------------------------------------- ------------ ------------ ----
m3.ihost.getbills.com:443                       Valid        Oct 12, 2022  391

You may want to check your environment.

gcdreamer123 commented 3 years ago

Hello Matt,

i am still getting error, what should i verify from the environment.

./ssl-cert-check -s m3.ihost.getbills.com -p 443

Host Status Expires Days


unable to load certificate 139900537874248:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:703:Expecting: TRUSTED CERTIFICATE unable to load certificate 140003529705288:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:703:Expecting: TRUSTED CERTIFICATE unable to load certificate 140410863109960:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:703:Expecting: TRUSTED CERTIFICATE unable to load certificate 140507599963976:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:703:Expecting: TRUSTED CERTIFICATE m3.ihost.getbills.com:443 Expired -2459474

gcdreamer123 commented 3 years ago

Matt,

Script working on Rhel7 server but failing on Rhel 6 server. Is there a way to verify what causing the issue on Rhel6 server