我可以跳过证书验证oracle utl_http吗? [英] Can I skip certificate verification oracle utl_http?

查看:215
本文介绍了我可以跳过证书验证oracle utl_http吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用pl/SQL开发一些应用程序,这些应用程序可以连接到多个外部服务,

I'm developing some apps in pl/SQL which connect to multiple external services,

示例:

declare
 utl_req         utl_http.req;
 utl_resp        utl_http.resp;
begin
-- This line in production for security, but takes forever to get authorized 
-- by oracle host provider :@
-- utl_http.set_wallet('file:/path/wallet', 'password');

-- In test env i would like something like
-- utl_http.set_option('CURLOPT_SSL_VERIFYHOST', false);
-- utl_http.set_option('CURLOPT_SSL_VERIFYPEER', false);
 utl_req := utl_http.begin_request('https://login.microsoftonline.com/...
/oauth2/token', 'POST', 'HTTP/1.1');-- Die
--...more code
end;

输出:

ORA-29024: Certificate validation failure

是否有一种方法可以命令Oracle出于测试目的而忽略证书验证,而没有auth等待将证书添加到钱包中.

Is there a way to order Oracle to ignore certificate validation for testing purposes, no auth waiting to add cert to wallet.

类似php

$curl_request = curl_init();
    curl_setopt($curl_request, CURLOPT_URL, 'https://login.microsoftonline.com/...
/oauth2/token');
    curl_setopt($curl_request, CURLOPT_POST, 1);
    // No thankyou i don't care about security in testing :P
    curl_setopt($curl_request, CURLOPT_SSL_VERIFYPEER, 0);
    curl_setopt($curl_request, CURLOPT_SSL_VERIFYHOST, 0);
    ... more code

推荐答案

我还没有找到一种方法,我要做的是构建一个简单的PHP中间人应用程序,该应用程序可以使用SSL进行访问并通过管道传送我的请求通过那个.

I have not found a way to do this, what I've done is build a simple PHP middle man app that can be accessed with SSL and pipe my request through that.

这篇关于我可以跳过证书验证oracle utl_http吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆