Not able to connect my application to Amazon RDS oracle db over TCPS

vivek mishra 1 Reputation point
2021-06-22T04:28:44.047+00:00

Hi All I am trying to connect Oracle Db from my dot net application but I am getting error:

Network Transport: SSL failure in parsing wallet location

I have all the required certificates in my windows certificate store (MCS). my connection string is :

 <appSettings>
 <add key="IMConnectionString" value="Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCPS)(HOST=abc-prod-rds-01.cvi0vpnztsiw.eu-central-1.rds.amazonaws.com)(PORT=2484))(CONNECT_DATA=(SID=abcprod)) (SECURITY = (SSL_SERVER_CERT_DN = C=US,ST=Washington,L=Seattle,O=Amazon Web Services,OU=Amazon RDS,CN=Amazon RDS Root 2019 CA))); Password = *****;  User ID = ****"/>

my configuration in app.config is:

<oracle.manageddataaccess.client>
<version number="*">
  <settings>
    <setting name="WALLET_LOCATION" value="(SOURCE = (METHOD = MCS))" />
    <setting name="TraceLevel" value="7" />
    <setting name="TraceOption" value="1" />
    <setting name="TraceFileLocation" value="C:\trace" />
  </settings>
  <dataSources>
    <dataSource alias="SampleDataSource" descriptor="(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=2484))(CONNECT_DATA=(SERVICE_NAME=ORCL))) " />
  </dataSources>
</version>
 </oracle.manageddataaccess.client>

I am making db call like this:

 var queryExecutor = _executor.GetQueryExecutor(item.QueryDatabase);
 DataSet ds = queryExecutor.ExecuteQuery(item);

Please let me know what I am missing?

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,119 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,236 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Leila Kong 3,691 Reputation points
    2021-06-22T07:54:32.08+00:00

    Hello @vivek mishra ,

    Thanks for your query.

    1.Please check if you used the Windows Certificate Store to hold the RDS Certificate Authority.
    https://stackoverflow.com/questions/52220070/oracle-manageddataaccess-to-aws-rds-db-tcps-invalid-ssl-wallet-magic

    2.Take a look at the ODP.NET trace. It should indicate which location it's looking for the wallet.
    https://community.oracle.com/tech/developers/discussion/4266830/odp-net-using-tcps-in-iis

    3.Connecting to Oracle Database: https://docs.oracle.com/en/database/oracle/oracle-database/18/odpnt/featConnecting.html#GUID-BCF2F215-C25F-403C-8D18-B03A69BC7104

    Best regards,
    Leila


    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Leila Kong 3,691 Reputation points
    2021-06-24T09:15:18.477+00:00

    Hello @vivek mishra ,

    Thanks for your information. Please check the following links for troubleshooting:

    1."When creating the wallet orapki disabled the permission inheritance of the files within the wallet, e.g. cwallet.sso and only allows the user that cerated the wallet to access those files. When allowing the Oracle Listener Service User to read this files and after that restarting the listener service, I was able to connect via SSL."
    https://community.oracle.com/tech/apps-infra/discussion/4317680/oracle-12c-and-ssl-configuration

    2."I configured oracle with MUTUAL authentication, however on client side haven't put the keystore, that is why received handshake exception. Need to add some parameters for java on client side (application)"
    https://stackoverflow.com/questions/52985595/db-server-tls-configuration-failures-tns-00542-ssl-handshake-failed

    0 comments No comments

  3. Leila Kong 3,691 Reputation points
    2021-07-06T09:53:00.483+00:00

    Hello @vivek mishra ,

    We haven’t heard from you in a couple of days.
    How are things going there on this issue?

    0 comments No comments

  4. Chen, JuYin (VDOT) 1 Reputation point
    2021-07-14T12:58:34.253+00:00

    We saw same error when trying to connect to Oracle 19 database in Amazon cloud from SSRS Report Builder 2016. How should we find out what to do?

    0 comments No comments