wirecli / wire-cli

🌀 An extendable CLI tool for ProcessWire developers. Automate common tasks and manage your ProcessWire projects effortlessly.
MIT License
14 stars 0 forks source link

SSL certificate problem #6

Closed eydun closed 11 months ago

eydun commented 11 months ago

When I try to "wirecli new" on my local machine, I get the error: Error loading sha master, curl request failed (status code: 0, url: https://raw.githubusercontent.com/processwire/processwire/master/wire/core/ProcessWire.php). cURL error: SSL certificate problem: unable to get local issuer certificate

Does it perhaps a linux-installation? (I am using Windows)

flydev-fr commented 11 months ago

This is certainly due to the version of the libcurl delivered with your version of PHP. Without more details, you can try the following:

Open php.ini with a text editor, locate the section [curl], check the value of the key curl.cainfo, if not empty, open the target directory from the value, rename the cacert.pem file and download the new one from https://curl.haxx.se/ca/cacert.pem then restart webserver/php.

Let me know if it worked, if not please add details about the PHP package you installed on Windows.

(wow github is lagging..)

eydun commented 11 months ago

Thank you for the prompt and precise reply, which fixed the issue!

eydun commented 11 months ago

By the way, on my machine the command is "wirecli" (not "wire-cli" as written in the docs).

flydev-fr commented 11 months ago

That's what was intended, it's shorter to type; I made a mistake in the doc. But I'm thinking of adding an alias anyway.

eydun commented 11 months ago

yeah, the shorter to write, the better 👍

eydun commented 11 months ago

Hi again,

Where is best to write ideas for new features?

E.g. It would be good, if it was possible to add "port" as parameter for "Serve"-command, if the actual port is occupied (e.g. if starting multiple instances).

flydev-fr commented 11 months ago

Hi @eydun , thanks, just open a new issue.