-
Notifications
You must be signed in to change notification settings - Fork 184
Accept SSL certificates by providing a URL to use cert from within a jar #313
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
Comments
We should accept an We should adopt:
to make this work. |
I would like to work on it. Could you assign it to me, please? |
Sure. Feel free to submit a pull request. Let us know if there's something you need assistance with. |
We found that emulating libpq worked well. Putting the certs in ~/.postgres by default |
For |
@mp911de, what kind of test should I add? Could you assist me? |
We now try to resolve SSL certificates first from the class path and then fall back to files when providing a path as string. [resolves #313][closes #318] Signed-off-by: Mark Paluch <[email protected]>
I have a
cert.pem
in mysrc/main/resources
I need it when running the app jarred as well as unjarred.
Specifying it faithfully in my
application.properties
asspring.r2dbc.properties.sslRootCert=classpath:cert.pem
fails as r2dbc does not load the file via classpath: https://github.com/pgjdbc/r2dbc-postgresql/blob/main/src/main/java/io/r2dbc/postgresql/util/Assert.java#L130I see two options: Either load the specified File via classloader#getResourceAsStream or accept an URL as a cert parameter instead of a String.
The issue was originally raised here: spring-projects/spring-data-r2dbc#430
The text was updated successfully, but these errors were encountered: