-
Notifications
You must be signed in to change notification settings - Fork 326
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
User certificate? #12
Comments
@alfem: was thinking about implementing that. Please let me know if https://github.com/lkundrak/openfortivpn/tree/client-ssl-cert works for you. |
@alfem ping? |
Sorry, I had not access to my vpn until now. I am testing your fork, with my user cert (keyword protected) and get this error: ERROR: SSL_CTX_use_certificate_file: error:140AD009:SSL routines:SSL_CTX_use_certificate_file:PEM lib I have checked that my cert and keyword work ok with forticlient. The same error comes out when I do not use the --user-key parameter |
Hi. Is the certificate a PEM file? Does it begin with a "-----BEGIN CERTIFICATE-----" line? |
Uh, I am afraid it is a pkcs12. This is the format our Government certs are issued. I will try to convert it and test again. |
It is (almost) working now! openfortivpn tries to open the connection, but fails with these messages (besides, I have to enter my private key pass phrase thrice):
|
Is this working now? Have the same problem. All us vpn's are with clientcert. I have 2 things. The Clientcert (p12). This file is password prodected. And the CA File. So how i set this in the configfile?
But where i can set the password for the p12? Thanks a lot |
@boospy You could remove the password from the pkcs12 certificate. I wouldn't recommend it though, for obvious reasons. |
Hello ckujau, i removed the pass from pkcs file. But get an error.
The file exist and the cacert is also ok. So what? I had the same errormessage before i changed the pkcs file. Thanks a lot :) |
|
I've send @lkundrak an email. |
@boospy, thanks for the message. @ckujau, @boospy, please try out this: https://github.com/adrienverge/openfortivpn/tree/lr/ssl-config-file Previously the ca-file, user-key and user-cert options were only accepted from the command line (contrary to the documentation). Also the error handling was not exactly correct, which is why you got the unhelpful error message. |
Hello lkundrak,
Best Regards |
Tested and working here. Sudo and a password-free user private key are both required. When I tried with a password protected private key file, the client ask me to enter the password twice in order to connect, and once again to disconnect (weird):
|
Hi, |
Looking at the documentation and code I can not find an option to point at my user certificate. Our Fortinet vpn needs both, server and client certificates.
It would be great if you can add this parameter.
The text was updated successfully, but these errors were encountered: