pkcs11 providers for 32bits and 64bits

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
didier.cabale
OpenVpn Newbie
Posts: 1
Joined: Thu Feb 15, 2018 10:14 am

pkcs11 providers for 32bits and 64bits

Post by didier.cabale » Thu Feb 15, 2018 10:41 am

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

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: pkcs11 providers for 32bits and 64bits

Post by TinCanTech » Thu Feb 15, 2018 12:43 pm

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 ..

Post Reply