Starting 23ai, Oracle JDBC Driver supports PEM format keystore / wallet. It can be configured using the "oracle.net.wallet_location" connection property or through the wallet_location URL parameter.
Please refer : https://docs.oracle.com/en/database/oracle/oracle-database/23/jjdbc/client-side-security.html#GUID-5434961D-EACC-4EFB-A794-C59D8067E8DE