Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection to remote MSSQL server fails with SSL issue #2513

Open
shahmanash opened this issue Aug 29, 2024 · 4 comments
Open

Connection to remote MSSQL server fails with SSL issue #2513

shahmanash opened this issue Aug 29, 2024 · 4 comments

Comments

@shahmanash
Copy link

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.

@mike-podolskiy90
Copy link
Contributor

Thank you for contacting us. We'll get back to you.

@bart-v
Copy link
Contributor

bart-v commented Aug 29, 2024

Just add ;encrypt=false to your database name (thus in the field "Database"), so it becomes
Ring;encrypt=false

@shahmanash
Copy link
Author

Thanks,
I can confirm that the suggested fix of adding the ;trustServerCertificate=true or ;encrypt=false to the value in the Database field works.
But it might not be the most elegant way to solve the issue.

@mike-podolskiy90
Copy link
Contributor

Yes, it seems it works as a workaround right now. We'll make a fix to address it properly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants