Quick summary
When running studio wp commands that require an internet connection, the process fails with a certificate error. This happens even when the host machine has a stable connection and can download the files via a browser.
Steps to reproduce
I downloaded Wordpress Studio in a clean Windows 11 Pro installation.
Using Studio interface, i tried to download 7.0-RC2 version, but error message pop-up
I tried to use the CLI through this command
studio wp core update https://wordpress.org/wordpress-7.0-RC2.zip --force
but another error appeared, confirming the requirements of certificate.
What you expected to happen
Just installing the Release Candidate Version in my computer
What actually happened
Error message through Wordpress Studio
Error occurred in handler for 'createSite': CliCommandError: [Last error message] Cannot set up WordPress while offline. Specific WordPress versions require an internet connection. Try using "latest" version or ensure internet connectivity.
Error message through CLI
Error: Failed to get url 'https://wordpress.org/wordpress-7.0-RC2.zip': cURL error 77: error setting certificate verify locations:
CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: none.
The PHP command openssl_get_cert_locations() try to find the certificate on a directory the Windows computer don't have (/etc/ssl/certs/ca-certificates.crt), now allowing the download of any Wordpress package.
Impact
Some (< 50%)
Available workarounds?
No and the app is unusable
Platform
Windows
Logs or notes
- Prioritize IPv4 over IPx6
- Add exception in the firewall
Quick summary
When running studio wp commands that require an internet connection, the process fails with a certificate error. This happens even when the host machine has a stable connection and can download the files via a browser.
Steps to reproduce
I downloaded Wordpress Studio in a clean Windows 11 Pro installation.
Using Studio interface, i tried to download 7.0-RC2 version, but error message pop-up
I tried to use the CLI through this command
studio wp core update https://wordpress.org/wordpress-7.0-RC2.zip --forcebut another error appeared, confirming the requirements of certificate.
What you expected to happen
Just installing the Release Candidate Version in my computer
What actually happened
Error message through Wordpress Studio
Error occurred in handler for 'createSite': CliCommandError: [Last error message] Cannot set up WordPress while offline. Specific WordPress versions require an internet connection. Try using "latest" version or ensure internet connectivity.Error message through CLI
The PHP command
openssl_get_cert_locations()try to find the certificate on a directory the Windows computer don't have (/etc/ssl/certs/ca-certificates.crt), now allowing the download of any Wordpress package.Impact
Some (< 50%)
Available workarounds?
No and the app is unusable
Platform
Windows
Logs or notes