Fix SSL_CERT_FILE & CMake Curl Certificate Errors in AnyPS5 Build
When compiling AnyPS5 on Windows with MSVC or MinGW, CMake frequently throws "SSL_CERT_FILE: unable to get local issuer certificate" or "curl: (60) SSL certificate problem" when fetching external submodules like SPIRV-Headers or Vulkan-ValidationLayers.
Windows does not bundle a system-wide OpenSSL certificate authority (CA) bundle by default. When CMake executes file(DOWNLOAD) or git submodule update, libcurl fails to verify remote GitHub SSL certificates.
check_circleVerified Resolution Steps
Locate or Download Mozilla CA Bundle
Download the official Mozilla cacert.pem bundle from curl.se or copy the ca-bundle.crt bundled inside your Git for Windows installation (usually at C:\Program Files\Git\mingw64\ssl\certs\ca-bundle.crt).
curl.exe -o C:\cacert.pem https://curl.se/ca/cacert.pemSet SSL_CERT_FILE Environment Variable in PowerShell
Before executing cmake, export the SSL_CERT_FILE environment variable pointing directly to your local ca-bundle file.
$env:SSL_CERT_FILE="C:\cacert.pem"Re-run CMake Configure & Build with Git SSL Configuration
Tell Git and CMake to use the validated bundle and re-run configuration.
git config --global http.sslCAInfo C:\cacert.pem; cmake -B build -DANYPS5_ENABLE_SPIRV_TOOLS=ONhelp_outlineFrequently Asked Questions
Can I just use the pre-compiled v0.1.2 release instead of compiling from source?
Yes! Official release v0.1.2 includes pre-built standalone binaries (relinker-v0.1.2.exe) on GitHub Releases. If you do not need custom PR modifications, downloading official binaries eliminates all CMake and SSL requirements.