How to connect with cookie, why i got error message ?
Mehrdad Ho
mehrdad6226h at gmail.com
Thu Jul 2 15:05:11 PDT 2015
Hello Dear
I try to connect from C# and command line and because i don't want to
show command line to my user i try to use from cookie
so first of all i use from webbrowser in C# to send username and
password to server for this work i'm send data with post method to
this address
https://SERVER.VPN/auth
Now in the received xml if all is ok i get success message
So i can save cookie and use from that in my connecting to server
received cookie is something like this :
webvpn=9W9udfRIJVEmk/MHK6lVDfiJTEX/RFeFRy9LL7AWIAsvF5mGzSrYpRWiGOJWkj91ui+KEcIBY2FjVufV65DI+ttlp3qATO+XwSM42Vz0;
Secure,webvpnc=; expires=Thu, 01 Jan 1970 22:00:00 GMT; path=/;
Secure,webvpnc=bu:/&p:t&iu:1/&sh:7350D44D9D499629335E7EB8A31B836A8EE85D06&lu:/+CSCOT+/translation-table?textdomain%3DAnyConnect%26type%3Dmanifest&fu:profiles%2F/etc/ocserv/profile.xml&fh:6B5181182D2B5483FBB8D2AA1BCBACC9A70E2BA3;
path=/; Secure
Now i want to connect from command line so my command is something like this :
openconnect SERVER.VPN --no-cert-check -C "received cookie"
But after that i got this error message in command line :
VPN service unavailable; reason: <unknown>
Creating SSL connection failed
what is wrong here ?
anyone can help me ?
Kind regards.
More information about the openconnect-devel
mailing list