diff options
Diffstat (limited to 'source4/web_server')
-rw-r--r-- | source4/web_server/tlscert.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/web_server/tlscert.c b/source4/web_server/tlscert.c index 1ea5007d1f..22e46a726c 100644 --- a/source4/web_server/tlscert.c +++ b/source4/web_server/tlscert.c @@ -113,7 +113,9 @@ void tls_cert_generate(TALLOC_CTX *mem_ctx, TLSCHECK(gnutls_x509_crt_set_activation_time(crt, activation)); TLSCHECK(gnutls_x509_crt_set_expiration_time(crt, expiry)); TLSCHECK(gnutls_x509_crt_set_ca_status(crt, 0)); +#ifdef GNUTLS_KP_TLS_WWW_SERVER TLSCHECK(gnutls_x509_crt_set_key_purpose_oid(crt, GNUTLS_KP_TLS_WWW_SERVER, 0)); +#endif TLSCHECK(gnutls_x509_crt_set_version(crt, 3)); TLSCHECK(gnutls_x509_crt_get_key_id(crt, 0, keyid, &keyidsize)); TLSCHECK(gnutls_x509_crt_set_subject_key_id(crt, keyid, keyidsize)); |