tlssrv: produce meaningfull error message when unable to read certificate
This commit is contained in:
parent
ebeb158a08
commit
fdeea811b7
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue