read more here
https://stackoverflow.com/questions/77250606/connecting-spring-boot-data-to-a-database-with-ssl-verify-ca
#I can not to connect to the database via ssl in Spring Boot
33 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @deep slate! Please use
/closeor theClose Postbutton above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
I can not to connect to the database via ssl in Spring Boot
Is that different to the previous question?
yes, because now the error is in opening the file and not in connecting
yeah I did realize that
maybe https://stackoverflow.com/questions/55550299/java-can-not-load-begin-trusted-certificate-format-certificate could help you
or maybe it's also related to https://github.com/dbeaver/dbeaver/issues/2859 (ik you're not using DBeaver but it could be a similar problem)
so you could try converting your PEM key to DER
I've tried it now. Unfortunately it didn't help
did you also change the spring config to use the DER file?
Yes, of course
now a new error has come out
I guess something is wrong with the client-key file
i don't understand what
btw when writing questions on Stack Overflow, never include images of text
use codeblocks instead
and I'll also recommend that on Discord
and the client key contains only one key?
oh well, for some reason it seemed to me that it was more convenient to read
yes
I tried to remove the inter at the end. it didn't help
Are you sure you want to share your client key here?
btw you might want to update your SO question with the new error etc
(and also remove the images of code)
I suppose without certificatesand and knowledge of the full database url it is useless
I'll fix it now
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use/help ping.
Warning: abusing this will result in moderative actions taken against you.
@iron pilot I found the answer, thank you for your help. In those articles that you threw, they advised to translate everything into another format, but as it turned out in my case, only the key had to be translated
If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.