Accessing API without an SSL certificate

Hello! I've been attempting to access the Oxford Dictionary API from localhost at work. I've hit a wall, though, as the request I'm marking using a curl function is returning an error related to the fact that localhost does not have a valid SSL certificate.

The URL I have been using is the URL for the live API site. Is there a development URL that I should be using instead? I have scoured the site for such a URL without any luck.

Thank you for any help in advance!

Comments

  • scook165scook165 Member

    It may be useful to add that I am using PHP and that I'm relatively inexperienced when it comes to APIs.

  • SimoneSimone Administrator admin

    Hi there, @scook165 - leave it with me, I've already contacted my colleagues in the technical team.
    They should be getting back to you asap.
    Have a great weekend! :)

  • AmosDuveenAmosDuveen Member ✭✭

    Hi @scook165,

    Can you please post the text of the error message?

  • scook165scook165 Member

    Hi Amos,

    The error message is the following:

    'SSL certificate problem: unable to get local issuer certificate'

    Thanks for the quick reply!

  • scook165scook165 Member

    Hi! I have solved this problem using the following curl option:

      curl_setopt($crl, CURLOPT_SSL_VERIFYPEER, false);
    

    Hopefully, this may be useful for anyone who encounters the issue in the future.

  • SimoneSimone Administrator admin

    Hi @scook165, many thanks for posting your solution, I'm sure it will be useful to others!

  • AmosDuveenAmosDuveen Member ✭✭

    Hi @scook165,

    You got there before I had a chance to respond. Well done, and thanks for posting!

Sign In or Register to comment.