Skip to contentSkip to conversation

OpenVPN and eToken.

Openvpn-devel [email protected]... 3 participants 8 messages Jan 2, 2006 – Jan 16, 2006 3 messages not in the archive

lore
Share & tools
lore
#1 lore raw
Quoted 11 lines · [email protected]... wrote:

Hello openvpn-devel,
I got myself the Aladdin's eToken PRO (USB) and I want to put it to
use with OpenVPN.
Where should I start reading about PKCS#11 on OpenVPN from?

Please CC me for I'm not on the List.
Thank you in advance.

I'm really sorry - I should have stated that I'm on winXP...

You can start from http://openvpn.net/howto.html#pkcs11. If I remember correctly, your provider should be eTpkcs11.dll. There is a known problem with Aladdin that sets duplicate labels on objects, so select objects by object id or certificate subject name.

Best Regards,
Alon Bar-Lev.

#3 lore raw

[Openvpn-devel] Re: OpenVPN and eToken (on windows).

In reply to a message not in the archive
Quoted 3 lines · [email protected]... wrote:

Hello Alon,

Thank you, I got it working.

I am glad.

Quoted 5 lines

Is it possible not to keep the "ca.crt" on local disk and fetch it from the token as well? I've put all the certs and keys into PKCS#12 file and imported it into the token - along with the "ca.crt". Currently OpenVPN demands on having this certificate locally.

Putting the CA certificate on the smartcard is a potential security issue. Each time you log into the token some one can modify its contents. By putting a different trust on your token, hence you can be venerable to man-in-the middle attack. One should separate between the identity and the trust.

Identity should be stored on cryptographic token, trust should be stored statically where application resides.

Quoted 2 lines

Is it possible to hide the "ta.key" (that is used for "tls-auth") in the token as well?

Well.. Many providers do not support HMAC with key in-side the token... I can store this key as a data object and export it during initialization... But using smartcard as a mass storage device is not a good idea... Especially when this key is common for every users that uses a specific server.

I will be glad to receive further comments regarding this issue... If it is important feature I will implement it.

Best Regards,
Alon Bar-Lev.

#5 lore raw

[Openvpn-devel] Re: OpenVPN and eToken (on windows).

In reply to a message not in the archive

Hello Andreas,

Quoted 4 lines · [email protected]... wrote:

ABL> Putting the CA certificate on the smartcard is a potential ABL> security issue. Each time you log into the token some one can ABL> modify its contents.
So, I may safely delete my CA's certificate from the token?

Sure! I recommend of doing so.

Quoted 4 lines

I did not see any drawback to having the full chain of trust stored on the token...
Besides, if "they" can modify token's contents - they can alter my private key too, can't they?!

They can delete your key, they can replace your key... But they cannot issue a new certificate for the new key... The combination of trust+private key is the proof that the server needs in order to let you in.

So as long as private keys cannot be extracted... and as long as the attacker does not have access to the CA private key, you are in a good security level.

Quoted 13 lines
Quoted 2 lines
Quoted 2 lines

Is it possible to hide the "ta.key" (that is used for "tls-auth") in the token as well?

ABL> Many providers do not support HMAC with key in-side the token... eToken PRO is among them - it can either handle RSA-2048 keys or do HMAC on hardware...

ABL> I can store this key as a data object and export it during ABL> initialization... But using smartcard as a mass storage device is ABL> not a good idea... Especially when this key is common for every ABL> users that uses a specific server.
I thought that the "tls-auth" key values could be something like the result of RSA-encoding the "direction" value.

Quoted 3 lines

On UNIXes all this may be non-issue, but on windoze it is really an issue to provide security to the files on disks... I'd rather tryed to use crypto-hardware to the full extent possible.

Well... I disagree. File protection on Linux and Windows is quite similar.

Quoted 4 lines

BTW, having all the set of keys and certs on a token facilitates the easier user roaming. That have OpenVPN installed on all workstations and let users to plug-in their tokens...

Yes. I understood that this what you try to achieve, but roaming and security do not always go on the same track.

I will take you one step farther... Why not put the whole openvpn configuration file on the cryptographic device? The combination of USB mass storage device and a smartcard is the best combination for roaming users.

But there is a drawback... if the user can select any openvpn configuration he can alter your network trust and bridge it to unauthorized foreign networks...

Best Regards,
Alon Bar-Lev.

#7 lore raw

[Openvpn-devel] Re: OpenVPN and eToken (on windows).

In reply to a message not in the archive
Quoted 11 lines · [email protected]... wrote:

Hello Alon,

ABL> Sure! I recommend of doing so.
OK.

ABL> So as long as private keys cannot be extracted... and as long as ABL> the attacker does not have access to the CA private key, you are ABL> in a good security level.
The CA certificate I included on the token *DOES NOT* contain it's private key.
Do you mean the brute-force against CA's public key?

They can simply replace it with a different CA certificate, so that you authenticate to a server that claims to be your server but actually is a different server that have the same certificate name as your server but was issued by the CA that replaced your CA on the token.

Quoted 6 lines

ABL> ... if the user can select any openvpn configuration he can alter ABL> your network trust and bridge it to unauthorized foreign ABL> networks...
Oh! Yes, now I see!

I am glad!

Best Regards,
Alon Bar-Lev.

#8 lore raw

Re: [Openvpn-devel] Re: OpenVPN and eToken (on windows).

-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

Quoted 4 lines

They can simply replace it with a different CA certificate, so that you authenticate to a server that claims to be your server but actually is a different server that have the same certificate name as your server but was issued by the CA that replaced your CA on the token.

But doesn't storing the CA cert on the local hard drive expose you the very same problem ? And the hard drive is always accessable, there's no authentication to access it once you're running from it.
(or am i missing the point here ?)

Albert
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDxSEaKltZixSsH2QRA3rvAJ4+KXJJ/j/omdHyXJW1bHE2x/PLcgCbB1bf 15Jit91QiWnc7HqK5fdcskc=
=MlhZ
-----END PGP SIGNATURE-----

#9 lore raw

Re: [Openvpn-devel] Re: OpenVPN and eToken (on windows).

Quoted 8 lines · Albert Siersema

-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

Quoted 4 lines

They can simply replace it with a different CA certificate, so that you authenticate to a server that claims to be your server but actually is a different server that have the same certificate name as your server but was issued by the CA that replaced your CA on the token.

Quoted 4 lines

But doesn't storing the CA cert on the local hard drive expose you the very same problem ? And the hard drive is always accessable, there's no authentication to access it once you're running from it.
(or am i missing the point here ?)

Let's say that you don't run as root or Administrator, openvpn daemon or service is using configuration file you cannot modify, this configuration file refers to a CA certificate that you cannot modify either. The result is that you can access only servers that suits system administrator policy, you cannot bridge your network to foreign site.

Modify this configuration requires something you don't have (Administrative permission), altering the token requires something you have (PIN).

Moreover, modifying the token exposes you where-ever you go, breaking into a specific machine exposes you only in this machine.

I hope it answer your question,
Alon Bar-Lev.

#10 lore raw

Re: [Openvpn-devel] Re: OpenVPN and eToken (on windows).

-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

Quoted 18 lines
Quoted 9 lines
Quoted 4 lines

They can simply replace it with a different CA certificate, so that you authenticate to a server that claims to be your server but actually is a different server that have the same certificate name as your server but was issued by the CA that replaced your CA on the token.

But doesn't storing the CA cert on the local hard drive expose you the very same problem ? And the hard drive is always accessable, there's no authentication to access it once you're running from it.
(or am i missing the point here ?)

Let's say that you don't run as root or Administrator, openvpn daemon or service is using configuration file you cannot modify, this configuration file refers to a CA certificate that you cannot modify either. The result is that you can access only servers that suits system administrator policy, you cannot bridge your network to foreign site.

Quoted 6 lines

Modify this configuration requires something you don't have (Administrative permission), altering the token requires something you have (PIN).

Moreover, modifying the token exposes you where-ever you go, breaking into a specific machine exposes you only in this machine.

Correct, not to nitpick, but rather to be complete about the requirements:
that does mean you'd need openvpn 2.1 (especially for MSWindows) and it's management interface. Otherwise running openvpn as a service under lower privileges won't work. And moreover: setting the correct ACLs in the filesystem. Which is not something a lot of MSWindows users (or admins for that matter) seem to be doing.

This issue might be a good one for in the FAQ under the heading of tightening security. If the 2.1 codebase goes stable/mainstream that is.

Albert
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDy7j0KltZixSsH2QRA4XQAJ9Gy0Ni/vcK1bpdbW0ZydF9J60RxwCfb+Nh JpD6PjXoeZaddNLYHncv1kI=
=1kAt
-----END PGP SIGNATURE-----