openvpn_inc wrote
Hello,
Sounds like you need to also update the cipher on the client side so it matches what the server now expects.
Kind regards,
Johan
Hi Johan!
I have made another static key under the version 2.5 on that client machine by `openvpn --genkey --secret static2.key`
It would give out a warning like this
WARNING: Using --genkey --secret filename is depreciated Use --genkey secret filename instead
but nevertheless generated the key file "static2.key". And I compared it with 'static.key' generated under version 2.4.11, the format has no difference, with the same envelope like this:
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
......the key string......
-----END OpenVPN Static key V1-----
Therefore I copied 'static2.key' generated by version 2.5.9 back to the server machine under version 2.4.11, and then copied it to the old client server with the same old version 2.4.11. After that I changed the configuration on both old machines to use 'static2.key' instead, then restart the server and the client - and it worked!
So it is not true that the old version cannot read the new key. It is not the key format that made the difference, but the new program does not support using static key to form a single p-to-p tunnel. Sorry that I did not flush the old client machine with the new openvpn version, because I cannot afford ruining the functioning tunnel between two old versions.