diff options
| author | reyk <> | 2010-06-26 18:42:02 +0000 | 
|---|---|---|
| committer | reyk <> | 2010-06-26 18:42:02 +0000 | 
| commit | 1607a037b67ac48d21a37a06da6bfe78fe0f1050 (patch) | |
| tree | 3d511037dec55725f751f1daa3fcaabd19b0f27c /src | |
| parent | 718f25c6853b9204ccdaaa6947c90c056989f2bd (diff) | |
| download | openbsd-1607a037b67ac48d21a37a06da6bfe78fe0f1050.tar.gz openbsd-1607a037b67ac48d21a37a06da6bfe78fe0f1050.tar.bz2 openbsd-1607a037b67ac48d21a37a06da6bfe78fe0f1050.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@
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libssl/x509v3.cnf | 3 | 
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 | 
| 2 | CERTPATHLEN = 1 | 2 | CERTPATHLEN = 1 | 
| 3 | CERTUSAGE = digitalSignature,keyCertSign,cRLSign | 3 | CERTUSAGE = digitalSignature,keyCertSign,cRLSign | 
| 4 | EXTCERTUSAGE = serverAuth,clientAuth | ||
| 4 | CERTIP = 0.0.0.0 | 5 | CERTIP = 0.0.0.0 | 
| 5 | CERTFQDN = nohost.nodomain | 6 | CERTFQDN = 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] | 
| 20 | subjectAltName=IP:$ENV::CERTIP | 21 | subjectAltName=IP:$ENV::CERTIP | 
| 22 | extendedKeyUsage=$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] | 
| 26 | subjectAltName=DNS:$ENV::CERTFQDN | 28 | subjectAltName=DNS:$ENV::CERTFQDN | 
| 29 | extendedKeyUsage=$ENV::EXTCERTUSAGE | ||
