-
Notifications
You must be signed in to change notification settings - Fork 329
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
How to disable certificate validation? #946
Comments
There's no such option. Get the cert from the server and use the |
You may automate that in a script shell. I don't have an example right now, but it shouldn't be too difficult:
If you come up with such a script, I would be happy to add it to the wiki: |
echo | openssl s_client -connect $ip:$port 2>/dev/null | \
openssl x509 -outform der | \
sha256sum | \
awk '{ print $1 }' If SNI is enabled on the server, you must use the domain instead of the IP. On older openssl versions, SNI is not enabled by default and you must pass the domain to the |
Thank you for answers! The answer of this script is
Then:
|
@seventhsite It looks like @fabianonunes has solved your initial problem:
By the way, instead of blindly accepting a server certificate, you could add the certification authority (CA) that signed the server certificate to the system certificate store. See for example: Now you seem to have a new and different problem:
I suggest you close this issue and open a new issue to address this new problem. |
Ok, thank you. |
Absolutely. I would like to second this. Another approach would be to run the sequence just once and add the Don't calculate the sha256sum each time you connect and blindly accept it. If you do this once, from a secure environment, you have obtained a checksum for the certificate, which allows you to verify if future ssl-vpn connections are secure or not. |
I used FortiClient with "Client certificate: none" and "Do not warn invalid server certificate". How I can use same thing in openforticlient?
I'm in search for config option.
The text was updated successfully, but these errors were encountered: