anchordotdev / cli

MIT License
386 stars 6 forks source link

Error: acme/autocert: certificate is not valid yet #18

Closed dewisekar00 closed 4 months ago

dewisekar00 commented 5 months ago

Are there any additional details you would like to share?


Command: anchor lcl Executable: C:\Program Files\Anchor CLI\anchor.exe Version: 0.0.37 (windows/amd64) Commit: 1cd0aa11dbb338760b0ff26abf1f469d6ae5b1a9 BuildDate: 2024-05-28T21:30:30Z Arguments: [] Flags: [] Timestamp: 2024-06-21T06:48:08.1814842Z Stdout:

# Signin to Anchor.dev `anchor auth signin`
    | Please sign up or sign in with your Anchor account.
    | 
    | Once authenticated, we can provision your personalized Anchor resources to
    | power HTTPS in your local development environment.
    - Copied your user code BKFL-SHWZ to your clipboard.
    - Opened https://anchor.dev/users/sign_in/cli?signup_src=lclhost in your browser
    - Signed in as nanamint623@gmail.com.
| Let's set up lcl.host HTTPS in your local development environment!
| 
| lcl.host (made by the team at Anchor) adds HTTPS in a fast and totally free way
| to local applications & services.
# Setup lcl.host HTTPS Local Development Environment `anchor lcl`
    | Once setup finishes, you'll have a secure context in your browsers and local
    | system so you can use HTTPS locally.
# Audit lcl.host HTTPS Local Development Environment `anchor lcl audit`
    | We'll begin by checking your system to determine what you need for your setup.
    - Checked resources on Anchor.dev: need to provision resources.
    - Compared local and expected CA certificates: need to install 2 missing certificates.
# Configure System for lcl.host HTTPS Local Development `anchor lcl config`
    | Before issuing HTTPS certificates for your local applications, we need to
    | configure your browsers and OS to trust your personal certificates.
    |
    | We'll start a local diagnostic web server to guide you through the process.
    - Entered hi-dewisekar00.lcl.host domain for lcl.host diagnostic certificate.
    - Resolved hi-dewisekar00.lcl.host domain: success!
    | Now we'll provision your application's resources on Anchor.dev and the HTTPS
    | certificates for your development environment.
    - Creating hi-dewisekar00 [hi-dewisekar00.lcl.host, hi-dewisekar00.localhost] diagnostic resources on Anchor.dev… ⠋
geemus commented 5 months ago

@dewisekar00 Hey, sorry to hear you are having problems.

After some investigation it looks like the most likely cause is clock drift. In particular, it seems likely that either your computer or the server was far enough out of sync that the certificate that ended up being created would fail in this way.

Could you ensure your systems clock is updated to be accurate and try again?