SSL certificate problem: certificate is not yet valid #402

Closed
opened 2026-04-05 20:27:45 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @SequelONE on 5/6/2023

CloudPanel version(s) affected

2.2.1

Description

When executing the composer update command on the local server on Windows 10 (Vagrant, VirtualBox, Ubuntu 22.04), the following error is displayed.

curl error 60 while downloading https://repo.packagist.org/packages.json: SSL certificate problem: certificate is not yet valid

I created SSL certificates with OpenSSL for local domain site.loc

How to reproduce

  1. Create ssh access for user
  2. Go to directory with Laravel
  3. Run composer update command

Possible Solution

Possible Solution, but I can’t find the cert.pem file in my system.

Update

In my case, the time in Ubuntu was not updated. You can watch it with the date command. If the time is out of sync with the current time, you can try running the command:

sudo timedatectl set-local-rtc 1

This can force the system to use local time as the real time clock (hardware clock).

The timedatectl command allows you to set the time, date and change the time zone in Linux.

Additional Context

No response

*Originally created by @SequelONE on 5/6/2023* ### CloudPanel version(s) affected 2.2.1 ### Description When executing the `composer update` command on the local server on Windows 10 (Vagrant, VirtualBox, Ubuntu 22.04), the following error is displayed. ``` curl error 60 while downloading https://repo.packagist.org/packages.json: SSL certificate problem: certificate is not yet valid ``` I created SSL certificates with OpenSSL for local domain site.loc ### How to reproduce 1. Create ssh access for user 2. Go to directory with Laravel 3. Run `composer update` command ### Possible Solution [Possible Solution](https://github.com/composer/packagist/issues/1218#issuecomment-963226201), but I can’t find the cert.pem file in my system. ***Update*** In my case, the time in Ubuntu was not updated. You can watch it with the `date` command. If the time is out of sync with the current time, you can try running the command: ``` sudo timedatectl set-local-rtc 1 ``` This can force the system to use local time as the real time clock (hardware clock). The `timedatectl` command allows you to set the time, date and change the time zone in Linux. ### Additional Context _No response_
Sign in to join this conversation.