WalletLocation

This property specifies the location of wallets. Wallets are certificates, keys, and trustpoints processed by SSL/TLS.

Declaration

// C#
public static string WalletLocation { get; set; }

Property Type

System.String

Remarks

Microsoft Certificate Store (MCS) and file system wallets are supported.

The backslash (\) is a special character in .NET that represents the beginning of an escape sequence. To specify a directory location, use any one of the following formats in .NET so that backslashes are correctly represented in a directory location:

// C#
OracleConnection con = new OracleConnection();
con.WalletLocation = "D:\\oracle\\client\\wallets";
con.WalletLocation = @"D:\oracle\client\wallets";
con.WalletLocation = "D:/oracle/client/wallets";

This property can accept file path or URL values that contain the wallet file.

It supports single sign-on files (.sso file extension) and PKCS #12 files (.p12 file extension). Since wallet location is a directory location, not file location, ODP.NET chooses the file to use based on the criteria:

  • When the wallet password is not supplied:

    • Reads the .sso file, if present

    • Reads the .p12 file, if present

  • When the wallet password is supplied:

    • Reads the .p12 file, if present