foundry icon indicating copy to clipboard operation
foundry copied to clipboard

Install via CURL - "SSL certificate problem: certificate has expired"

Open ewebgh33 opened this issue 1 year ago • 1 comments

Component

Foundryup

Have you ensured that all of these are up to date?

  • [X] Foundry
  • [X] Foundryup

What version of Foundry are you on?

Cannot install, issue is installing

What command(s) is the bug in?

curl -L https://foundry.paradigm.xyz | bash

Operating System

macOS (Intel)

Describe the bug

Thought you would want to know Tried to install Foundry just now And got this:

curl: (60) SSL certificate problem: certificate has expired
More details here: https://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). If the default
 bundle file isn't adequate, you can specify an alternate file
 using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
 the bundle, the certificate verification probably failed due to a
 problem with the certificate (it might be expired, or the name might
 not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
 the -k (or --insecure) option.
HTTPS-proxy has similar options --proxy-cacert and --proxy-insecure.

Yes I could tell it to ignore but as I said, I thought the team would like to know this is happening.

Aside: SSLs are the worst part of the internet. If we all need them, why aren't they included with all hosts by default? Oh right, profiteering. I feel you. :(

ewebgh33 avatar Feb 16 '24 00:02 ewebgh33

Uh do I need to worry about this too? Related or not?

dyld: cannot load 'forge' (load command 0x80000034 is unknown)
foundryup: command failed: /Users/COMPUTERFACE/.foundry/bin/forge --version
foundryup: installed - 
dyld: cannot load 'cast' (load command 0x80000034 is unknown)
foundryup: command failed: /Users/COMPUTERFACE/.foundry/bin/cast --version
foundryup: installed - 
dyld: cannot load 'anvil' (load command 0x80000034 is unknown)
foundryup: command failed: /Users/COMPUTERFACE/.foundry/bin/anvil --version
foundryup: installed - 
dyld: cannot load 'chisel' (load command 0x80000034 is unknown)
foundryup: command failed: /Users/COMPUTERFACE/.foundry/bin/chisel --version
foundryup: installed - 

MacOS 10.13.6 Seems like this is related to me being on an older Mac but should that really stop Foundry from installing/running?

ewebgh33 avatar Feb 16 '24 00:02 ewebgh33

Where can I find the minimum MacOS version needed to run please?

ewebgh33 avatar Feb 19 '24 03:02 ewebgh33

Should be MacOS 10.12 Sierra, but we build in CI with macos-large-latest which is MacOS 13.

I don't really have much context cc @onbjerg @mattsse

DaniPopes avatar Feb 19 '24 15:02 DaniPopes

this is because that specific load command was introduced in later versions of macos, i'm not sure which one specifically. can prob be fixed in CI. i assume you're on an intel chip? can you share more info? (specs, os version)

onbjerg avatar Feb 19 '24 15:02 onbjerg

Certainly

10.13.6 High Sierra / 3ghz Intel Core Xeon X5 / 64GB RAM

It's a Mac Pro trashcan but that shouldn't be any different to any other Mac running High Sierra. I would love to be able to get Foundry working here - previously tried Truffle/Brownie and Hardhat, about 18months back, and then stopped (but no troubles running those at the time). Trying to pick up again with current tools.

Googling did indeed tell me it was some command native to later versions of Mac, but sadly not how to get around it. Appreciate this is a niche case but if anyone knows of a simple workaround I would really like to get this working.

:) Thanks E

ewebgh33 avatar Feb 20 '24 00:02 ewebgh33

You can try compiling from source with the latest stable rust version (https://rustup.rs) using 'foundryup -b master'

DaniPopes avatar Feb 20 '24 00:02 DaniPopes

Yeah, building from source would be your best bet

onbjerg avatar Feb 20 '24 12:02 onbjerg

Closing as stale—please let us know if it isn't fixed and we'll reopen

Evalir avatar Apr 09 '24 13:04 Evalir