Skip to contentSkip to conversation

key management ?

Openvpn-devel gary ng 2 participants 4 messages Apr 8, 2004 – Apr 9, 2004

lore
Share & tools
lore

gary ng

author
#0 lore raw

Hi,

Openvpn is moving nicely in feature for large scale deployment.

I am wondering if there is already plan to make the key management more suitable for this kind of deployment.

AFAIK, currently the cert can only be signed by one root CA. However, this is usually not how these public key based authentication is used in corporations(based on my experienced with Lotus Notes). Usually, the root CA of an organisation is well guarded and is only used to sign intermediate CAs(can be multiple level) which are then delegated for actual end node cert signing. This has the advantage that if certain CAs are compromised, they can be moved to CRL making any future cert signed by then being rejected. This is also useful for inter-organisational situation when such confidential communication is necessary.

Another nice to have feature is to associate(or limit) the remote IPs based on certificates.

__________________________________
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway
http://promotions.yahoo.com/design_giveaway/

#1 lore raw
Quoted 9 lines · gary ng

Hi,

Openvpn is moving nicely in feature for large scale deployment.

I am wondering if there is already plan to make the key management more suitable for this kind of deployment.

Quoted 12 lines

AFAIK, currently the cert can only be signed by one root CA. However, this is usually not how these public key based authentication is used in corporations(based on my experienced with Lotus Notes). Usually, the root CA of an organisation is well guarded and is only used to sign intermediate CAs(can be multiple level) which are then delegated for actual end node cert signing. This has the advantage that if certain CAs are compromised, they can be moved to CRL making any future cert signed by then being rejected. This is also useful for inter-organisational situation when such confidential communication is necessary.

OpenVPN currently supports intermediate CAs (one or multiple levels).

Quoted 2 lines

Another nice to have feature is to associate(or limit) the remote IPs based on certificates.

This is possible using the --tls-verify script which can examine the IP address and x509 name of an incoming cert and decide whether or not to accept it.

Some people even use this capability to do an nmap on the IP address to make sure the client hasn't been compromised, before allowing the connection.

James

author
#2 lore raw
Quoted 2 lines · --- James Yonan

OpenVPN currently supports intermediate CAs (one or multiple levels).

How would I do this in the configuration file ? I tried to create a self-signed root CA then an intermediate CA but if I just place the intermediate CA as the 'ca' parameter(both node cert is signed by it), openvpn didn't work. So I revert to sign the nodes with the root CA and things work. That is why it gives me the impression that only root CA is supported.

Quoted 10 lines
Quoted 2 lines

Another nice to have feature is to associate(or

limit)

Quoted 1 line

the remote IPs based on certificates.

This is possible using the --tls-verify script which can examine the IP
address and x509 name of an incoming cert and decide whether or not to accept it.

Quoted 5 lines

Some people even use this capability to do an nmap on the IP address to make
sure the client hasn't been compromised, before allowing the connection.

Thanks. that is nice to know. I am not sure if this is the same as I envisioned. What I am working at is a setup that depending on the remote certificate, the openvpn server would assign a certain range of ip(the virtual ip, not the real remote ip which I believe is what this nmap thing is about) to the node. The scenario behind it is that say for certain server(or applications), I would only allow incoming connections from a selected list of workstations/nodes(either on vpn or simple inter network). Currently, it is worked around in openvpn by using different ports(it is needed anyway for serving multiple clients). However, I see that new feature of openvpn 2.0 that would make it possible to use one public port, so I am wondering if it is possible to do this based on certificates so if the certificate is 'administrator', an ip is assigned from the admin pool etc.

__________________________________
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway
http://promotions.yahoo.com/design_giveaway/

#3 lore raw
Quoted 4 lines · gary ng
Quoted 2 lines · --- James Yonan

OpenVPN currently supports intermediate CAs (one or multiple levels).

Quoted 8 lines

How would I do this in the configuration file ? I tried to create a self-signed root CA then an intermediate CA but if I just place the intermediate CA as the 'ca' parameter(both node cert is signed by it), openvpn didn't work. So I revert to sign the nodes with the root CA and things work. That is why it gives me the impression that only root CA is supported.

Intermediate CAs do work, though there are some gotchas which have been discussed on the lists in the past -- see the archives.

Quoted 23 lines
Quoted 9 lines
Quoted 1 line

Another nice to have feature is to associate(or

limit)

Quoted 1 line

the remote IPs based on certificates.

This is possible using the --tls-verify script which can examine the IP
address and x509 name of an incoming cert and decide whether or not to accept it.

Quoted 5 lines

Some people even use this capability to do an nmap on the IP address to make
sure the client hasn't been compromised, before allowing the connection.

Thanks. that is nice to know. I am not sure if this is the same as I envisioned. What I am working at is a setup that depending on the remote certificate, the openvpn server would assign a certain range of ip(the virtual ip, not the real remote ip which I believe is what this nmap thing is about) to the node. The scenario behind it is that say for certain server(or applications), I would only allow incoming connections from a selected list of workstations/nodes(either on

Quoted 8 lines

vpn or simple inter network). Currently, it is worked around in openvpn by using different ports(it is needed anyway for serving multiple clients). However, I see that new feature of openvpn 2.0 that would make it possible to use one public port, so I am wondering if it is possible to do this based on certificates so if the certificate is 'administrator', an ip is assigned from the admin pool etc.

Yes, this is possible with scripting. The script could look at the X509 common name and use that to decide which virtual IP to set, and which routes to set on both the client and server side.

James