Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection Status: logon failed #17

Closed
DavidGzzMilan opened this issue Sep 25, 2018 · 8 comments
Closed

Connection Status: logon failed #17

DavidGzzMilan opened this issue Sep 25, 2018 · 8 comments

Comments

@DavidGzzMilan
Copy link

Additional information:
Connection Status: logon failed
Server certificate verification failed.
Unknown result code: 7
Please create an issue with this code here:
https://github.com/MatthiasLohr/docker-f5fpc/issues/new
@MatthiasLohr
Copy link
Owner

Can you please check if my new commit in the bugfix/logonDenied branch deals successfully with that? Thanks!

@DavidGzzMilan
Copy link
Author

Certainly I can go forward, but now I'm receiving this message:

➜  docker-f5fpc git:(bugfix/logonDenied) ./f5fpc-vpn.sh client
Please enter VPN host name (e.g. vpn.yourserver.com): vpn.example.us
Please enter your VPN username: ***********
Please enter your VPN password:
Logon denied. Insufficient privileges/wrong logon credentials?
Exiting...f5fpc-vpn

If I try connect with my BIG-IP EDGE f5 client I connect with no trouble.
screen shot 2018-09-26 at 11 29 58 am

@MatthiasLohr
Copy link
Owner

Do you have any bash/shell relevant special characters in your username/password? Something that should be escaped?

@DavidGzzMilan
Copy link
Author

No really, username has a dot '.' and password a pound '#' but I suppose that is ok

@MatthiasLohr
Copy link
Owner

Ah, the problem is in your first post:

Server certificate verification failed.

So I have to think on how to deal with that...

@MatthiasLohr
Copy link
Owner

MatthiasLohr commented Oct 2, 2018

Are you using the newest docker image? Can you retry deleting and pulling again (the docker image, not (only) this repository)?

@DavidGzzMilan
Copy link
Author

DavidGzzMilan commented Oct 2, 2018

Just tried the suggest, getting slightly different message but at the end same result:

~ docker image rm matthiaslohr/f5fpc
Untagged: matthiaslohr/f5fpc:latest
Untagged: matthiaslohr/f5fpc@sha256:a8dcbb022316163499b91773548f167374873e4a9d30d2a7fe720d54a6c6a939
Deleted: sha256:ec0349d4c5a82f2bf4093b14c9b119b02660a89cc742b75224958deecfbf6578
Deleted: sha256:882c3c031d170f6b7b0c020b572b03a789be039beccd0553ff7d8a816181e944
Deleted: sha256:3edad633fc891ae70280286878b277d207c1f8f8899d6583f0775fd763137ca2
Deleted: sha256:ad649e4108b54ef6f341731f19142391da9b0c27a653ec040d3381c9fdc84931
Deleted: sha256:df64d3292fd6194b7865d7326af5255db6d81e9df29f48adde61a918fbd8c332

➜  ~ docker image pull matthiaslohr/f5fpc
Using default tag: latest
latest: Pulling from matthiaslohr/f5fpc
4fe2ade4980c: Pull complete
3d3df7cb688f: Pull complete
d95014599d07: Pull complete
9dd9ebd1d880: Pull complete
Digest: sha256:a8dcbb022316163499b91773548f167374873e4a9d30d2a7fe720d54a6c6a939
Status: Downloaded newer image for matthiaslohr/f5fpc:latest
➜  docker-f5fpc git:(bugfix/logonDenied) git fetch origin
remote: Enumerating objects: 5, done.
remote: Counting objects: 100% (5/5), done.
remote: Compressing objects: 100% (1/1), done.
remote: Total 3 (delta 2), reused 3 (delta 2), pack-reused 0
Desempaquetando objetos: 100% (3/3), listo.
Desde https://github.com/MatthiasLohr/docker-f5fpc
   2432be6..ce1a0d1  bugfix/logonDenied -> origin/bugfix/logonDenied

➜  docker-f5fpc git:(bugfix/logonDenied) git pull
Actualizando 2432be6..ce1a0d1
Fast-forward
 f5fpc-vpn.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

➜  docker-f5fpc git:(bugfix/logonDenied) ./f5fpc-vpn.sh client
Please enter VPN host name (e.g. vpn.yourserver.com): vpn.example.us
Please enter your VPN username: d*****.g******
Please enter your VPN password:
Logon denied
Connection Status: logon failed
Server certificate verification failed.
f5fpc-vpn

➜  docker-f5fpc git:(bugfix/logonDenied)

@MatthiasLohr
Copy link
Owner

Ok. Then, in my opinion, the problem is not part of this project. Your server certificate (your real domain is contained in one of your pictures...) seems not to be verifiable by CAs contained in the ca-certificates package. I already created a new ticket (#19) for supporting custom CAs, but for now I'm not sure why my browser validates your server certificate, but curl (on the same machine) does not. You could try the following:

curl https://vpn.yourserver.us/

either on your local machine or better in the f5fpc container. That gives me:

curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.haxx.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.

That's also the reason why the f5vpn script says "Server certificate verification failed." So, please check your server certificate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants