]> andersk Git - test.git/blobdiff - libhttp/ssl.c
Use 2048-bit RSA keys for auto-generated certificates.
[test.git] / libhttp / ssl.c
index ba9213335fa7c9825d97991154c04fce12870523..f9cb37f1beea61b4d33c2a4d3bbbcb2b797ec9df 100755 (executable)
@@ -364,7 +364,7 @@ static void sslGenerateCertificate(const char *certificate,
     umask(077);
     check(setenv("PATH", "/usr/bin:/usr/sbin", 1) == 0);
     execlp("openssl", "openssl", "req", "-x509", "-nodes", "-days", "7300",
-           "-newkey", "rsa:1024", "-keyout", certificate, "-out", certificate,
+           "-newkey", "rsa:2048", "-keyout", certificate, "-out", certificate,
            "-subj", stringPrintf(NULL, "/CN=%s/", serverName),
            (char *)NULL);
     check(0);
This page took 0.024292 seconds and 4 git commands to generate.