1
0
Fork 1

Move certificate expiration into the far future

This commit is contained in:
Drew DeVault 2021-03-04 11:04:46 -05:00
parent ae7ca3db39
commit f23ec10a6d
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ tls_host_gencert(struct gmnisrv_tls *tlsconf, struct gmnisrv_host *host,
X509_set_version(x509, 2);
ASN1_INTEGER_set(X509_get_serialNumber(x509), 1);
X509_gmtime_adj(X509_get_notBefore(x509), 0);
X509_gmtime_adj(X509_get_notAfter(x509), 31536000L); // 1 year
X509_gmtime_adj(X509_get_notAfter(x509), 31536000L * 200); // 200 years
X509_set_pubkey(x509, pkey);
char *organization = "gmnisrv";