从MarkLogic Server连接的sslv3握手失败(0x14077410)

时间:2019-03-21 22:22:21

标签: openssl marklogic sslv3

我正在使用MarkLogic 8,并尝试向服务器发出POST请求。我可以通过curl或使用POSTMan进行连接,但是Markloigc失败了。类似的帖子表明,由于Markloigc使用OpenSSL,这与SNI有关。我试图将选项放入发布请求中,但是,我仍然遇到相同的错误。对解决此问题有任何见解?请参见下面的代码段:

xdmp:http-post($post_url,
                        <options xmlns="xdmp:http">
                         <data>{xdmp:quote($custom_json)}</data>                              
                         <headers>
                           <content-type>application/json</content-type>
                           <Host>{$host}</Host>
                         </headers>
                         <allow-sslv3>true</allow-sslv3>
                       </options>
                        )

2 个答案:

答案 0 :(得分:0)

您似乎没有发送任何凭据。尝试这样的事情:

xdmp:http-post(
    $post_url,
    <options xmlns="xdmp:http">
        <data>{xdmp:quote($custom_json)}</data>                              
        <headers>
            <content-type>application/json</content-type>
            <Host>{$host}</Host>
        </headers>
        <allow-sslv3>true</allow-sslv3>
        <authentication method="digest">
            <username>myUsername</username>
            <password>myPassword</password>
        </authentication>
    </options>
)

答案 1 :(得分:0)

仅更新此线程,我已经在MarkLogic 9中测试了相同的代码,并且可以正常工作。我不确定这是否是Marklogic 8和其使用的OpenSSL库的组合。

相关问题