diff --git a/lib/nss.c b/lib/nss.c index dbb9a57faf1198f28e6e87b4b0a5e5d143999562..d6f3fcd892a9f25178775d251ae21dae422833e2 100644 --- a/lib/nss.c +++ b/lib/nss.c @@ -991,8 +991,11 @@ CURLcode Curl_nss_connect(struct connectdata *conn, int sockindex) rv = NSS_NoDB_Init(NULL); } else { - rv = NSS_Initialize(certDir, NULL, NULL, "secmod.db", - NSS_INIT_READONLY); + char *certpath = PR_smprintf("%s%s", + NSS_VersionCheck("3.12.0") ? "sql:" : "", + certDir); + rv = NSS_Initialize(certpath, "", "", "", NSS_INIT_READONLY); + PR_smprintf_free(certpath); } if(rv != SECSuccess) { infof(conn->data, "Unable to initialize NSS database\n");