Connecting to Juniper SSLVPN through Linux CLI.

This post describes the method to get important information to connect to Juniper SSLVPN using it’s Linux Client.


Other than the hostname / sitename, There are four important parameters required.

* Username
* Password
* Realm
* Certificate in der format.

I guess you already have Username / Password for login. Rest two can be acquired using following methods.

* To get the realm, open the internet explorer and access the hostname of the SSLVPN server. Then open the Page source and search for word “realm”, capture the volume.


* To get the certificate in der format, execute following command in console. remember, you must have openssl installed.

This command has been picked up from

echo | openssl s_client -connect 2>&1 | sed -ne ‘/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p’ | openssl x509 -outform der -out ive.crt

Finally, I’m not responsible if this information causes losses of any kind to anybody…..


Leave a Reply