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

djamaarima's avatar

LaravelSail/SSL error while downloading

can anyone plase tell me why i get this errors : Failed to download sebastian/code-unit-reverse-lookup from dist: curl error 28 while downloading htt://codeload.github.com/sebastianbergmann/code-unit-reverse-lookup/legacy.zip/5e3a687f7d8ae33fb362c5c0743794bbb2420a1d: Resolving timed out after 122019 milliseconds .

when i try to load a new app using this comande :curl -s htt://laravel.build/App | bash .

0 likes
13 replies
djamaarima's avatar

yes i just remove the ps to be the question accepted from Laracasts . that's not the issue

djamaarima's avatar

@MohamedTammam i suggested that but the ping work normal which mean the problem is not my internet here is the resualt of the ping : ping google.com PING google.com (216.58.205.206) 56(84) bytes of data. 64 bytes from mil04s29-in-f14.1e100.net (216.58.205.206): icmp_seq=1 ttl=113 time=105 ms 64 bytes from mil04s29-in-f14.1e100.net (216.58.205.206): icmp_seq=2 ttl=113 time=106 ms 64 bytes from mil04s29-in-f14.1e100.net (216.58.205.206): icmp_seq=3 ttl=113 time=56.8 ms 64 bytes from mil04s29-in-f14.1e100.net (216.58.205.206): icmp_seq=4 ttl=113 time=219 ms 64 bytes from mil04s29-in-f14.1e100.net (216.58.205.206): icmp_seq=5 ttl=113 time=279 ms ^C --- google.com ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4005ms rtt min/avg/max/mdev = 56.788/153.266/278.980/82.461 ms

MohamedTammam's avatar

@djamaarima You need to have stable connection during the whole installation process. Try running the command again. And see if stops at the same package or not. If yes, then use a VPN (mostly problem with connecting to the domain). If stop in another package, then the problem with the internet connection.

1 like
MohamedTammam's avatar

@djamaarima from your terminal (WSL, if you're using windows). Run the following

docker run --rm \
    --pull=always \
    -v "$(pwd)":/opt \
    -w /opt \
    laravelsail/php82-composer:latest \
    bash -c "laravel new example && cd example && php ./artisan sail:install --with=mysql"
djamaarima's avatar

@MohamedTammam same i can not create the project but find some indicaions : -tha packages that composer can not download them are same and they are all from codeload.github.com -so i tried to access the URL :codeload.github.com from diffrent browsers and all give me the error of not secure here is the error : Votre connexion n’est pas privée Les utilisateurs malveillants essaient peut-être de voler vos informations de codeload.github.com (par exemple, les mots de passe, les messages ou les cartes de crédit). NET::ERR_CERT_COMMON_NAME_INVALID -and then i tried to access the host file and find this content :

Copyright (c) 1993-2001 Microsoft Corp.

This file has been automatically generated for use by Microsoft Internet

Connection Sharing. It contains the mappings of IP addresses to host names

for the home network. Please do not make changes to the HOSTS.ICS file.

Any changes may result in a loss of connectivity between machines on the

local network.

172.19.176.1 DESKTOP-APJTMCE.mshome.net # 2028 8 0 6 18 8 12 176 -and now i think the problem is with SSL certification

can you help ?

MohamedTammam's avatar

@djamaarima I just ran the following command and it worked well. Try using VPN

curl -s --ssl-no-revoke https://laravel.build/test | bash
djamaarima's avatar

@MohamedTammam Unfortunatly it doesn't work for me but i relaise some things :

1.The issue is consistent across different browsers.

2.Changing DNS settings did not resolve the problem.

3.Temporarily disabling SSL in the browser did not resolve the issue.

4.The problem seems to be related to SSL/TLS communication between my computer and the server.

5.then i try to check the opensll with specific web site and that wat i get :

 openssl s_client -connect codeload.github.com:443             
CONNECTED(000001D4)                                             
depth=2 C = US, O = Google Trust Services LLC, CN = GTS Root R1 
verify error:num=20:unable to get local issuer certificate      
verify return:1                                                 
depth=1 C = US, O = Google Trust Services LLC, CN = GTS CA 1C3  
verify return:1                                                 
depth=0 CN = dns.google                                         
verify return:1                                                 
---                                                             
Certificate chain                                               
 0 s:CN = dns.google                                            
   i:C = US, O = Google Trust Services LLC, CN = GTS CA 1C3     
 1 s:C = US, O = Google Trust Services LLC, CN = GTS CA 1C3     
   i:C = US, O = Google Trust Services LLC, CN = GTS Root R1    
 2 s:C = US, O = Google Trust Services LLC, CN = GTS Root R1    
   i:C = BE, O = GlobalSign nv-sa, OU = Root CA, CN = GlobalSign
---                                                             
Server certificate                                              
-----BEGIN CERTIFICATE-----                                     
MIIF4zCCBMugAwIBAgIRAL8k191GosmLCe0SKUm2E1gwDQYJKoZIhvcN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gAAAAAAAAAACIRIcQIAFIYEhgAAAAAAAAAABkZIcQIAFIYEhg
AAAAAAAAAAAAZDAhBgNVHSAEGjAYMAgGBmeBDAECATAMBgorBgEEAdZ5AgUDMDwG
A1UdHwQ1MDMwMaAvoC2GK2h0dHA6Ly9jcmxzLnBraS5nb29nL2d0czFjMy9mVkp4
YlYtS3Rtay5jcmwwggEEBgorBgEEAdZ5AgQCBIH1BIHyAPAAdgC3Pvsk35xNunXy
OcW6WPRsXfxCz3qfNcSeHQmBJe20mQAAAYljKEdTAAAEAwBHMEUCID+0IGEcqw0M
ug604MZfDQAsTzMa9UUQUFRetd7kfEHhAiEA6mACdfgvfl9RFOB7ydC/UY4TXQqq
OsWLnlVcbcak0XEAdgDoPtDaPvUGNTLnVyi8iWvJA9PL0RFr7Otp4Xd9bQa9bgAA
AYljKEdCAAAEAwBHMEUCIEAJUZKmUXZypKs9RfHq+CSwETfX35+RpCrE4ZlDcv43
AiEAlsFwD1cxK3HKLI6FQblWmioB/MSZP/6dY7MG1km22jQwDQYJKoZIhvcNAQEL
BQADggEBAMAGOicitYr940WQ6/+kkAtPSSlC30JzlL1YL8cq0L1T/XaqOWY7JoR2
1wBljGdkjME8/jKGumbFz4UmKdjT+5utSylzk+6LvYvNWqQghRyETRauqPiWF5Mg
thgKuofc6JVW7hX5kLkiGjdSFSGotR6EDVLhC1twknvJOb8+1mit7vOPK5mtfDEL
uYPa5/ty4W/6WlzxcCvxDIVLD30yGrQRRiKSX+WJMcj3yW3SwPhkXJcS+janI4e+
ol9/QMLe2Unhss3Pe37Mv4Z/Y35E1G/1RzJDmq6HF4CHzX1h5hwb3q2E75yMGqTW
WNT67sBElfA9nuU9deZtCdd3Hv9Xie8=                                
-----END CERTIFICATE-----                                       
subject=CN = dns.google                                         
                                                                
issuer=C = US, O = Google Trust Services LLC, CN = GTS CA 1C3   
                                                                
---                                                             
No client certificate CA names sent                             
Peer signing digest: SHA256                                     
Peer signature type: RSA-PSS                                    
Server Temp Key: X25519, 253 bits                               
---                                                             
SSL handshake has read 4827 bytes and written 401 bytes         
Verification error: unable to get local issuer certificate      
---                                                             
New, TLSv1.3, Cipher is TLS_AES_256_GCM_SHA384                  
Server public key is 2048 bit                                   
Secure Renegotiation IS NOT supported                           
Compression: NONE                                               
Expansion: NONE                                                 
No ALPN negotiated                                              
Early data was not sent                                         
Verify return code: 20 (unable to get local issuer certificate) 
---        

it seem this is the header issue : verify error:num=20:unable to get local issuer certificate am glad if you can help me or you have a sloution for me

Please or to participate in this conversation.