Protocol-Error when trying to connect with SSL
Posted: Thu 30 Jul 2020 09:14
Hi,
I'm using dotConnect 7.17.1666 with Postgresql 12 on a ubuntu-Server. When trying to connect to the server/database, I get the following error:
I already read the older posts concerning this issue but I coudn't resolve my problem. The ssl-configuration In the current postgresql.conf looks like this:
I also tried to connect with ssl_min_ and ssl_max set, but with no success. The code to connect to the server is like
I tried connectiong without the TlsProtocol-Option and setting the Cipherlist to "ALL" as well. I'm out of ideas. A connection with pgAdmin4 with the same parameters works just fine.
Would you please give some advice?
I'm using dotConnect 7.17.1666 with Postgresql 12 on a ubuntu-Server. When trying to connect to the server/database, I get the following error:
Code: Select all
The server hello message uses a protocol that was not recognized.
Code: Select all
ssl = on
ssl_ciphers = 'HIGH:MEDIUM:+3DES:!aNULL'
#ssl_min_protocol_version = 'TLSv1.1'
#ssl_max_protocol_version = 'TLSv1.2'
Code: Select all
Dim con As New PgSqlConnection With {
.ConnectionString = "host=192.168.2.86;Port=5432;user id=musterdb;Password=mypassword;database=musterdb;unicode=true;"
}
con.SslOptions.CACert = "C:\Daten\root.crt"
con.SslOptions.Cert = "C:\Daten\musterdb.crt"
con.SslOptions.Key = "C:\Daten\musterdb.key"
con.SslOptions.SslMode = SslMode.Require
con.SslOptions.TlsProtocol = "1.2"
con.SslOptions.CipherList = "3DES"
con.Open()
Would you please give some advice?