Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cURL error 60: SSL certificate problem: self signed certificate #95

Closed
Astriel opened this issue Sep 5, 2023 · 3 comments · Fixed by #96
Closed

cURL error 60: SSL certificate problem: self signed certificate #95

Astriel opened this issue Sep 5, 2023 · 3 comments · Fixed by #96

Comments

@Astriel
Copy link

Astriel commented Sep 5, 2023

Hello everyone,

I hope you are doing good. I've integrated backpack on my current project. I'm using Windows 10 + Laragon. Everything went fine, then I've switch to another branch, then came back on the one with Backpack integration and the design is now broken.

Everything is installed, except I can't make basset work, so that's probably why my whole admin UI is broken ?

Here is what I got :

php artisan basset:check

   INFO  Checking Backpack Basset installation.

  Initializing basset check ................................................................................................................... DONE
  Checking cache storage ...................................................................................................................... DONE
  Fetching a basset .......................................................................................................................... ERROR

   ERROR  cURL error 60: SSL certificate problem: self signed certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://myproject.local/storage/basset/vendor/backpack/basset/tests/Helpers/basset-test.js.
### PHP VERSION:
PHP 8.1.2 (cli) (built: Jan 19 2022 10:18:23) (ZTS Visual C++ 2019 x64)
Copyright (c) The PHP Group
Zend Engine v4.1.2, Copyright (c) Zend Technologies

### LARAVEL VERSION:
10.21.1.0

### BACKPACK PACKAGE VERSIONS:
backpack/basset: 1.2.0
backpack/crud: 6.2.0
backpack/devtools: 2.0.3
backpack/generators: v4.0.2
backpack/permissionmanager: 7.0.1
backpack/pro: 2.0.11
backpack/theme-coreuiv4: 1.1.0

SSL is working fine on localhost, but can't manage to get rid of the error. Any feedback ?
Thanks a lot !

@Astriel
Copy link
Author

Astriel commented Sep 5, 2023

This is what the design looks like :

image

@promatik
Copy link
Contributor

promatik commented Sep 6, 2023

Hi Astriel! Thank you for your report, I've just pushed a fix for your issue 👌
I was able to reproduce it using Laragon.

Basically cURL doesn't like self signed certificates, so in dev mode we disable the check for the certificate 🤷‍♂️

Let's move conversation to #96.

@Astriel
Copy link
Author

Astriel commented Sep 7, 2023

Hi @promatik !
Thank you for your time and your investigation !
Perfect for the check on dev mod, I've tried everything with the certificate but was unable to make it work, so that sounds good !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants