summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorreyk <>2010-06-26 18:42:02 +0000
committerreyk <>2010-06-26 18:42:02 +0000
commit6eedf8363affeb8644950c72022c00cbdd22b189 (patch)
tree3d511037dec55725f751f1daa3fcaabd19b0f27c
parentd2be431e6efb5972fbc155378f57e212e5e0bba6 (diff)
downloadopenbsd-6eedf8363affeb8644950c72022c00cbdd22b189.tar.gz
openbsd-6eedf8363affeb8644950c72022c00cbdd22b189.tar.bz2
openbsd-6eedf8363affeb8644950c72022c00cbdd22b189.zip
Add the extendedKeyUsage flags serverAuth and clientAuth. Newer Windows
version require these flags to accept the X.509 certificates from the gateway or client; I just add both flags to make it work in both cases and verified it with win7, for example when authenticating against iked. go ahead beck@
-rw-r--r--src/lib/libssl/x509v3.cnf3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/libssl/x509v3.cnf b/src/lib/libssl/x509v3.cnf
index 5835534b96..8c6b775da1 100644
--- a/src/lib/libssl/x509v3.cnf
+++ b/src/lib/libssl/x509v3.cnf
@@ -1,6 +1,7 @@
1# default settings 1# default settings
2CERTPATHLEN = 1 2CERTPATHLEN = 1
3CERTUSAGE = digitalSignature,keyCertSign,cRLSign 3CERTUSAGE = digitalSignature,keyCertSign,cRLSign
4EXTCERTUSAGE = serverAuth,clientAuth
4CERTIP = 0.0.0.0 5CERTIP = 0.0.0.0
5CERTFQDN = nohost.nodomain 6CERTFQDN = nohost.nodomain
6 7
@@ -18,9 +19,11 @@ keyUsage=$ENV::CERTUSAGE
18# The address must be provided in the CERTIP environment variable 19# The address must be provided in the CERTIP environment variable
19[x509v3_IPAddr] 20[x509v3_IPAddr]
20subjectAltName=IP:$ENV::CERTIP 21subjectAltName=IP:$ENV::CERTIP
22extendedKeyUsage=$ENV::EXTCERTUSAGE
21 23
22# This section should be referenced to add a FQDN hostname 24# This section should be referenced to add a FQDN hostname
23# as an alternate subject name, needed by isakmpd 25# as an alternate subject name, needed by isakmpd
24# The address must be provided in the CERTFQDN environment variable 26# The address must be provided in the CERTFQDN environment variable
25[x509v3_FQDN] 27[x509v3_FQDN]
26subjectAltName=DNS:$ENV::CERTFQDN 28subjectAltName=DNS:$ENV::CERTFQDN
29extendedKeyUsage=$ENV::EXTCERTUSAGE