Accessing API without an SSL certificate
Categories
- 192 All Categories
- 4 LexiStats Corner
- 7 Review my code
- 6 Tutorials and presentations
- 68 Frequently asked questions
- 3 How to get useful technical help
- 1 Member guidelines
- 9 Suggest an improvement
- 19 Report a bug
- 6 Ask the Community: Other
- 41 Ask the Community: Technical and operational questions
- 28 General
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!
0
Comments
It may be useful to add that I am using PHP and that I'm relatively inexperienced when it comes to APIs.
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!
Hi @scook165,
Can you please post the text of the error message?
Hi Amos,
The error message is the following:
'SSL certificate problem: unable to get local issuer certificate'
Thanks for the quick reply!
Hi! I have solved this problem using the following curl option:
Hopefully, this may be useful for anyone who encounters the issue in the future.
Hi @scook165, many thanks for posting your solution, I'm sure it will be useful to others!
Hi @scook165,
You got there before I had a chance to respond. Well done, and thanks for posting!