I have created a standard template database via DBCA in Oracle 12c R2 and then installed the APEX code via the apex installation directory that was installed with the Oracle 12c R2 binaries.
I have also upgraded APEX to 5.0.4
I have created a simple PL/SQL block that uses DBMS_NETWORK_ACL_ADMIN.append_host_ace to create and ACL and then creates a procedure that calls this website
http://oracle-base.com/webservices/add-numbers.php via the APEX_WEB_SERVICE.make_rest_request routing.
I then call the procedure from SQL*Plus and it works as expected.
BUT
If I try to call
https://oracle-base.com/webservices/add-numbers.php via the same routine it fails.
I have created a wallet and added the wallet path and wallet password to the call as shown below
l_clob := APEX_WEB_SERVICE.make_rest_request(
p_url => '
https://oracle-base.com/webservices/add-numbers.php', p_http_method => 'GET',
p_parm_name => APEX_UTIL.string_to_table('p_int_1:p_int_2'),
p_parm_value => APEX_UTIL.string_to_table(p_int_1 || ':' || p_int_2),
p_wallet_path => 'file:/home/oracle/Wallet',
p_wallet_pwd => 'S3-Oracle'
);
And I have also tried using the following code in the PL/SQL block
DBMS_NETWORK_ACL_ADMIN.append_wallet_ace
(
wallet_path => 'file:/home/oracle/Wallet',
ace => xs$ace_type
(
privilege_list => xs$name_list('use_client_certificates'),
principal_name => l_principal,
principal_type => xs_acl.ptype_db
)
);
However when I call the procedure from SQL*Plus all I get is ORA-29024: Certificate validation failure
So I am guessing that I am missing a step somewhere, but I have followed all the guides and My Oracle Support notes that I can find on the subject
Help appreciated thanks
Mike