tlssrv: produce meaningfull error message when unable to read certificate

This commit is contained in:
cinap_lenrek 2015-02-17 07:05:54 +01:00
parent ebeb158a08
commit fdeea811b7

View file

@ -70,7 +70,7 @@ main(int argc, char *argv[])
sysfatal("out of memory");
conn->chain = readcertchain(cert);
if(conn->chain == nil)
sysfatal("can't read certificate %s", cert);
sysfatal("%r");
conn->cert = conn->chain->pem;
conn->certlen = conn->chain->pemlen;
conn->chain = conn->chain->next;