tls: added ECDH ciphers support

This would allow closing of issues #4315 #4317 and #4710.