Skip to content

Connection to remote MSSQL server fails with SSL issue #2513

@shahmanash

Description

@shahmanash

Connection to a remote MSSQL server from an IPT running in docker fails with SSL related error, see attached screenshot.

ms-sql-server-tls-error

The testing (temporary) fix is to add trustServerCertificate=true; to the JDBC url definition in the jdbc.properties file
i.e. Change
https://github.com/gbif/ipt/blob/master/src/main/resources/jdbc.properties#L25

mssql.url=jdbc:sqlserver://{host};databaseName={database}
to
mssql.url=jdbc:sqlserver://{host};databaseName={database};trustServerCertificate=true;

However it is not persistant in a docker container and probably not the best way in a prod environment.

Please advise on the best possible way to address the issue.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions