oracledb thin mode connect to oracle db using self signed certificate #412
-
Hi. I am trying to connect to an Oracle DB using a self signed certificate. The certificate is trusted in the system store already (verified using openssl s_client -connect). However, it seems that I can't make the CA/cert trusted for oracledb libs.
Results in:
I tried setting REQUESTS_CA_BUNDLE but that didn't work. I also installed certifi but that also had no effect. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
Beta Was this translation helpful? Give feedback.
-
Do you know how the library does the TLS validation ? And you know how to create Oracle wallet using thin client ? I think you would need a full Oracle installation right to have access to orapki binary ? |
Beta Was this translation helpful? Give feedback.
The library does TLS validation using this code. The negotiation can be found in this code. It is a very simple call to the SSL context
wrap_socket()
method.There is no way to create an Oracle wallet using thin client today. I believe you do need a full Oracle client or database installation in order to create an Oracle wallet. You can do it on the machine hosting the database, though. It should be quite possible to connect to the database without doing so, but the configuration bit you happen to be missing is unknown to me, unfortunately.