if (path) {
key = su_sprintf(autohome, "%s/%s", path, "wss.key");
if (access(key, R_OK) != 0) key = NULL;
+
cert = su_sprintf(autohome, "%s/%s", path, "wss.crt");
+ if (access(cert, R_OK) != 0) cert = NULL;
+
chain = su_sprintf(autohome, "%s/%s", path, "ca-bundle.crt");
+ if (access(chain, R_OK) != 0) chain = NULL;
+
if (access(cert, R_OK) != 0) cert = NULL;
if ( !key ) key = su_sprintf(autohome, "%s/%s", path, "wss.pem");
if ( !cert ) cert = su_sprintf(autohome, "%s/%s", path, "wss.pem");
+ if ( !chain ) chain = su_sprintf(autohome, "%s/%s", path, "wss.pem");
if (access(key, R_OK) != 0) key = NULL;
if (access(cert, R_OK) != 0) cert = NULL;
if (access(chain, R_OK) != 0) chain = NULL;