CUTCODEDOWN
Minimalist Semantic Markup

Welcome Guest
Please Login or Register

If you have registered but not recieved your activation e-mail in a reasonable amount of time, or have issues with using the registration form, please use our Contact Form for assistance. Include both your username and the e-mail you tried to register with.

Author Topic: SSL Certificate failure - laptop okay, work dev server failure  (Read 197 times)

GrumpyYoungMan

  • Hero Member
  • *****
  • Posts: 788
  • Karma: +8/-0
    • Grumpy Young Man
Code: [Select]
Warning
: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:0A000086:SSL routines::certificate verify failed in..

Quote
Apache Version    Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.3.0

Any idea why? it works on the home laptop but not on the workshop local dev server?

Not sure if this is a PHP issue or a server issue?
Trying to learn a new trick to prove old dogs can learn new ones...

Total Novice have-a go Amateur Programmer - not sure that is the right thing to say... but trying to learn...

GrumpyYoungMan

  • Hero Member
  • *****
  • Posts: 788
  • Karma: +8/-0
    • Grumpy Young Man
Re: SSL Certificate failure - laptop okay, work dev server failure
« Reply #1 on: 22 Jan 2024, 04:02:09 am »
So, I restarted the PC (server) and its all working now?

Although I did try connecting via http and not via https.

I should have been clearer, I changed from https to http to test and it worked, so changed it back again to https and it works...
« Last Edit: 22 Jan 2024, 05:55:30 am by GrumpyYoungMan »
Trying to learn a new trick to prove old dogs can learn new ones...

Total Novice have-a go Amateur Programmer - not sure that is the right thing to say... but trying to learn...

MilesWeb

  • Junior Member
  • *
  • Posts: 5
  • Karma: +0/-0
Re: SSL Certificate failure - laptop okay, work dev server failure
« Reply #2 on: 5 Feb 2024, 03:13:16 am »
The error indicates a failure in SSL certificate verification, meaning PHP couldn't establish a secure connection with the remote server.

Here are some troubleshooting steps that you can check out,
- Ensure your server has a valid and up-to-date CA bundle
- Locate php.ini and set curl.cainfo to the path of a valid CA bundle (e.g., curl.cainfo = "C:\php\cacert.pem")
- Review Apache configuration
- Check OpenSSL is configured correctly
MilesWeb: Your Hosting, Our Responsibility!!

 

SMF spam blocked by CleanTalk

Advertisement