The connection with client1 has fallen

As I was following: and everything worked as expected, connecting from a Windows machine pop ups the tittle error. Meanwhile connecting from an Android Devide pops

Failed to parse profile: crypto_alg: SHA256key-direction: not found

Any guess about what went wrong?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
December 22, 2022

Hi there,

The error message that you are getting indicates that there is a problem with the crypto_alg directive in your OpenVPN configuration file.

There are a few things you can try to troubleshoot this issue:

  • Check the syntax of your configuration file. Make sure that there are no errors or typos in the file.

  • Check the version of OpenVPN that you are using. Some older versions of OpenVPN may not support the crypto_alg directive. If this is the case, you will need to update to a newer version of OpenVPN.

  • Check the client configuration file. Make sure that the client configuration file is correctly specifying the key-direction option.

  • Check the server logs. The OpenVPN server logs may contain additional information about the error. You can find the server logs in the /var/log/openvpn.log file.

I hope this helps! Let me know if you have any other questions.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We’d like to help.

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine or ten thousand.

Learn more ->
DigitalOcean Cloud Control Panel
Get started for free

Enter your email to get $200 in credit for your first 60 days with DigitalOcean.

New accounts only. By submitting your email you agree to our Privacy Policy.

© 2023 DigitalOcean, LLC.