Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

cURL HTTPS issue on Blacknight Minimus Windows hosting

  • 05-05-2016 11:40am
    #1
    Registered Users, Registered Users 2 Posts: 18,272 ✭✭✭✭


    Just wondering if anyone is using PHP on Blacknights minimus hosting solution (windows), I am messing around with PHP at the minute and I want to use cURL to pull some info from a website hosted using HTTPS.

    I have serious trouble getting it to work on my Blacknight hosting but it works fine when hosted elsewhere.

    Here is my code:
    $url = 'https://www.google.ie';
    
    $curl_handle=curl_init(); 
    curl_setopt($curl_handle, CURLOPT_CAINFO, dirname(__FILE__)."/cacert.pem");
    curl_setopt($curl_handle, CURLOPT_URL,$url);
    curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 0);
    curl_setopt($curl_handle, CURLOPT_TIMEOUT, 2000);
    curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1);
    
    $raw = curl_exec($curl_handle);
    echo curl_error($curl_handle);
    
    curl_close($curl_handle);
    

    I got the cacert from here - https://curl.haxx.se/ca/cacert.pem

    The error I get is:

    [font=Arial, 'Helvetica Neue', Helvetica, sans-serif]SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed[/font]

    But again only on Blacknight minimus windows hosting.

    So the issue seems to be that Blacknight server either is missing some configuration or there is some insecure proxy the request goes through? Just wondering if anyone has successfully done this on such hosting or do I need another hosting offering to be able to achieve this?


Comments

  • Registered Users, Registered Users 2 Posts: 1,987 ✭✭✭Ziycon


    Have you contacted Blacknight support about this yet?


  • Registered Users, Registered Users 2 Posts: 18,272 ✭✭✭✭Atomic Pineapple


    Ziycon wrote: »
    Have you contacted Blacknight support about this yet?

    Yep, tried earlier to contact their technical support but was unable to get a response.


  • Registered Users, Registered Users 2 Posts: 1,206 ✭✭✭zig


    Have you tried this solution or the solution after it?
    http://stackoverflow.com/a/10566962/1652535

    Edit: Don't expect too much assistance for a shared hosting package (with any company). Shared hosting restricts the ability to change settings easily.


  • Registered Users, Registered Users 2 Posts: 18,272 ✭✭✭✭Atomic Pineapple


    Yeh I've tried the work around SSL approach too but it throws up the same issues.


  • Registered Users, Registered Users 2 Posts: 7,739 ✭✭✭mneylon


    If you're having issues with our hosting please open a support ticket. You can do so either via the web interface at: https://help.blacknight.com/home or by emailing help@blacknight.com
    Our support team work 7 days a week


  • Advertisement
Advertisement