Project

General

Profile

Requirements for certificates used with Windows 7 » History » Version 3

Andreas Steffen, 12.05.2009 09:57
added OpenSSL options

1 1 Martin Willi
h1. Requirements for certificates used with Windows 7
2 1 Martin Willi
3 3 Andreas Steffen
The Windows 7 Beta release was liberal in accepting certificates, but the Release Candidate adds new requirements for the VPN gateway certificate. 
4 1 Martin Willi
5 1 Martin Willi
h2. Required fields
6 1 Martin Willi
7 3 Andreas Steffen
Your gateway certificate must have:
8 1 Martin Willi
9 3 Andreas Steffen
* An *Extended Key Usage* flag, explicitly allowing the certificate to be used for authentication purposes. It is currently unclear which OIDs are accepted by Windows, but it seems that the "serverAuth" OID (_1.3.6.1.5.5.7.3.1_, often called _TLS Web server authentication_) gets accepted. If you are using OpenSSL to generate your
10 3 Andreas Steffen
certificates then include the option
11 1 Martin Willi
12 3 Andreas Steffen
<pre>
13 3 Andreas Steffen
extendedKeyUsage = serverAuth
14 3 Andreas Steffen
</pre> 
15 3 Andreas Steffen
16 3 Andreas Steffen
* The hostname of the VPN gateway entered in the clients connection properties MUST be contained either in the *Distinguished Name* of the certificate or in a *subjectAltName* extension. E.g. using OpenSSL the subjectAltName _vpn.strongswan.org_ can be added with the option
17 3 Andreas Steffen
18 3 Andreas Steffen
<pre>
19 3 Andreas Steffen
subjectAltName = DNS:vpn.strongswan.org
20 3 Andreas Steffen
</pre>
21 1 Martin Willi
22 1 Martin Willi
h2. Disabling extended certificate checks
23 1 Martin Willi
24 1 Martin Willi
Alternatively, you may disable these extended certificate checks on the client. 
25 1 Martin Willi
26 1 Martin Willi
> *This is potentially dangerous, as any certificate holder assured by your CA may act as the VPN gateway.*
27 1 Martin Willi
28 1 Martin Willi
To disable the extended checks, add a _DWORD_ called _DisableIKENameEkuCheck_ to
29 1 Martin Willi
> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\RasMan\Parameters\
30 1 Martin Willi
in the clients Registry.
31 1 Martin Willi
32 2 Martin Willi
h2. Futher information
33 1 Martin Willi
34 1 Martin Willi
For more details about the requirements and other ways to disable the certificate checks, have a look to "this knowledge base article":http://support.microsoft.com/kb/926182.