Page 1 of 1

Configuring Viscosity

Posted: Thu Oct 30, 2008 1:11 am
by iain1971
I am difficulty in getting Viscosity to complete the connection with an OpenVPN server. I wonder whether it is the security certificates. I have the following: ca.cert, ca.key, client1.crt, client1.csr, client1.key. Please can you tell me which one should go in which place on the preferences file. Many thanks.

Re: Configuring Viscosity

Posted: Thu Oct 30, 2008 9:16 am
by James
Hi iain1971,

Try the following:

CA: ca.cert
Cert: client1.crt
Key: client1.key

If you have a OpenVPN config file you can tell Viscosity to import it and these will be automatically filled in for you.

Cheers
James

Re: Configuring Viscosity

Posted: Thu Oct 30, 2008 6:05 pm
by iain1971
Hi James

Thanks for this. I get the following error: "Options error: specify only one of --tls-server, --tls-client, or --secret".

I'm not sure what else I need to configure.

Re: Configuring Viscosity

Posted: Thu Oct 30, 2008 10:32 pm
by James
Try editing your connection again and do the following:

1. Click on the Certificates tab
2. Select Static Key from the Authentication Type drop down menu
3. Click the "Clear" button next to the Secret field
4. Click save and try connecting.

Cheers
James

Re: Configuring Viscosity

Posted: Fri Oct 31, 2008 6:32 pm
by iain1971
James

I now get this error message: Options error: Parameter ca_file can only be specified in TLS-mode, i.e. where --tls-server or --tls-client is also specified.

Iain

Re: Configuring Viscosity

Posted: Fri Oct 31, 2008 6:37 pm
by iain1971
James

I just logged off and on again and I now have my connection! Thanks for your help.

Iain

Re: Configuring Viscosity

Posted: Fri Oct 31, 2008 11:07 pm
by James
No problem - glad to hear you got it working.

Cheers
James

Re: Configuring Viscosity

Posted: Thu Mar 17, 2011 4:39 am
by doogie04
I didn't see it mentioned above, but i was getting the same error. It turns out that my open vpn config file specified different cert/key file names, i.e. "client5.cert" and "client5.key". I noticed that after import the files were listed as simply cert.crt and key.key. Changing the files in the Viscosity dialog did not help -- the settings reverted after i left and came back.

To work around this problem I changed my config file on import to use the names viscosity defaulted to. I also renamed my cert/key files to the names Viscosity defaulted to. I then reimported my config and all was right with the world.

HTH,
-eric