Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Farirai's avatar

SSL: no alternative certificate subject name matches target host name 'codeload.github.com'

im getting the error after getting laravel new app1

the erros im getting

    Creating a "laravel/laravel" project at "./test"
    Info from https://repo.packagist.org: #StandWithUkraine
    Installing laravel/laravel (v10.0.3)
  - Downloading laravel/laravel (v10.0.3)
      - Downloading laravel/laravel (v10.0.3)
      - Downloading laravel/laravel (v10.0.3)
      - Downloading laravel/laravel (v10.0.3)
        Failed to download laravel/laravel from dist: curl error 60 while downloading https://codeload.github.com/laravel/laravel/legacy.zip/37ab32cf760406f767f6a278748546214585c93f: SSL: no alternative certificate subject name matches target host name 'codeload.github.com'
    Now trying to download from source
  - Syncing laravel/laravel (v10.0.3) into cache
^CTerminate batch job (Y/N)? y

if i run composer --vvv

got this

C:\Users\Admin\Desktop>composer diagnose
Checking platform settings: OK
Checking git settings: OK git version 2.39.2
Checking http connectivity to packagist: OK
Checking https connectivity to packagist: OK
Checking github.com rate limit: OK
Checking disk free space: OK
Checking pubkeys:
Tags Public Key Fingerprint: 57815BA2 7E54DC31 7ECC7CC5 573090D0  87719BA6 8F3BB723 4E5D42D0 84A14642
Dev Public Key Fingerprint: 4AC45767 E5EC2265 2F0C1167 CBBB8A2B  0C708369 153E328C AD90147D AFE50952
OK
Checking composer version: OK
Composer version: 2.5.4
PHP version: 8.2.0
PHP binary path: C:\xampp\php\php.exe
OpenSSL version: OpenSSL 3.0.7 1 Nov 2022
cURL version: 7.85.0 libz 1.2.12 ssl OpenSSL/3.0.7
zip: extension present, unzip not available, 7-Zip not available
0 likes
7 replies
Farirai's avatar

@shaungbhone i installed laravel globally already so i am running laravel new app to create a new laravel project thats whem im getting that error

Please or to participate in this conversation.