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 #7

Closed
christopherpross opened this issue Mar 1, 2023 · 5 comments
Closed

cURL error 60: SSL certificate problem #7

christopherpross opened this issue Mar 1, 2023 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@christopherpross
Copy link

Describe the bug
I can not use the command 'ai-commit commit'. It gives me an error about a ssl certificate problem.

To Reproduce
Steps to reproduce the behavior:

  1. Open PowerShell under Windows (current version)
  2. Go into the folder with the git-repo to use with ai-commit
  3. make sure that your apikey is correct
  4. Enter the command 'ai-commit commit'
  5. see the following output:
    `1. Generating commit messages: failed

In CurlFactory.php line 211:

cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/
libcurl-errors.html) for https://api.openai.com/v1/completions`

Expected behavior
The error should not accoure and the commit should have been generated.

Additional context

  • OS: Windows 11
  • Shell: PowerShell Core 7.2
  • php version: PHP 7.4.33 (cli) (built: Nov 2 2022 16:00:55) ( ZTS Visual C++ 2017 x64 ) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) Zend Technologies
  • ai-commit version: 1.2.6
@christopherpross christopherpross added the bug Something isn't working label Mar 1, 2023
@welcome
Copy link

welcome bot commented Mar 1, 2023

Thanks for opening your first issue here! Be sure to follow the issue template!

@create-issue-branch
Copy link

Branch issue-7-cURL_error_60_SSL_certificate_problem created!

@guanguans
Copy link
Owner

@christopherpross

Try to close the certificate verification.

# Can find the configuration file.
./ai-commit config list

image

image

@christopherpross
Copy link
Author

@guanguans
thank you for your answer. I didn't know that this option exist. Maybe mention that in the readme?

@guanguans
Copy link
Owner

guanguans commented Mar 4, 2023

@christopherpross https://docs.guzzlephp.org/en/latest/request-options.html
There are many HTTP client options. General use the default on it, so there is no added description, I will add it later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants