Import Connection from Server

Got a problem with Viscosity or need help? Ask here!

rps

Posts: 11
Joined: Wed Mar 18, 2015 5:05 am

Post by rps » Wed Mar 18, 2015 5:26 am
Not a Viscosity specific question, but hoping someone here can help.

OpenVPN-AS provides support for a client getting it's configuration via a URL.

I've noticed Viscosity has support for this option as well.

I don't run OpenVPN-AS, we wrote our own VPN management solution to configure OpenVPN. Right now mobile users get can get a .ovpn download that they can import into OpenVPN Connect Client, but the URL option that AS provides would be easier.

I've looked online to try and find out what the design specification for this is so I could implement support for it, but haven't had much luck. At this point I think my only option would be to get a copy of AS and reverse-engineer it.

Does anyone know what the request and response should look like for this?

Any plans for a Viscosity to provide a mobile client (Android and iOS)?

James

User avatar
Posts: 2317
Joined: Thu Sep 04, 2008 9:27 pm

Post by James » Thu Mar 19, 2015 1:51 pm
Hi rps,

If you're looking at simulating the OpenVPN-AS server side to allow Viscosity to perform an import, the easiest method is to simply have a script at "yourserver.com/rest/GetUserlogin", that's behind HTTP Basic Authentication, that returns a copy of the configuration file as text. Any embedded certificates etc. will need to use OpenVPN's inline syntax. Viscosity will do the rest.
Any plans for a Viscosity to provide a mobile client (Android and iOS)?
It's in the works. News on that front soon. :)

Cheers,
James
Web: https://www.sparklabs.com
Support: https://www.sparklabs.com/support
Twitter: https://twitter.com/sparklabs
2 posts Page 1 of 1