Page 1 of 1

pkcs11 providers for 32bits and 64bits

Posted: Thu Feb 15, 2018 10:41 am
by didier.cabale
Hi all,

I want to add parameters to my .ovpn configuration file, so that this configuration file can be used either on 32bits PC's or 64bits PC's

Particularly about the pkcs11 providers:

If my PC is in 32 bits:
[content of my .ovpn file]
pkcs11-providers <path_to_my_32bits_pkcs_provider>

If my PC is in 64 bits:
[content of my .ovpn file]
pkcs11-providers <path_to_my_64bits_pkcs_provider>

As I want the same .ovpn file to be installed on any kind of target PC (32 /64bits), what can be done at simpliest?

Is something like this possible?:
[content of my .ovpn file]
pkcs11-providers <path_to_my_32bits_pkcs_provider> <path_to_my_64bits_pkcs_provider>

or is something like this possible?:
[content of my .ovpn file]
pkcs11-providers %ProgramFiles%<end_path_to_my_pkcs_provider>

Thanks
Please excuse me if this is not the right forum to post. Then tell me where to post instead

Re: pkcs11 providers for 32bits and 64bits

Posted: Thu Feb 15, 2018 12:43 pm
by TinCanTech
I have not used it myself but the directive --pkcs-providers does infer that more than one can be specified .. try it and see.

You cannot use %Variables% or $Variables in the config file because Openvpn does not expand them.

Otherwise, you will probably need two different config files ..