WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Rust Cargo not functional (certificate issues)  (Read 3075 times)

Offline patham9

  • Newbie
  • *
  • Posts: 3
Rust Cargo not functional (certificate issues)
« on: October 22, 2023, 01:03:20 PM »
I know from experience Rust Cargo is a bit of a bloated piece of software which easily dumps half a Gig on your disc for installing a small package.
So I understand that Rust is not a priority for systems programmers who usually prefer a small self-hosted environment, or people who prefer a small OS like this wonderful community here!

Nevertheless, to my surprise I noticed both TinyCore and CorePure64 provide a Rust package. Unfortunately both of them fails to install local issuer certificate when Cargo gets involved,
I am not quite sure if this is an issue with the rust tcz file itself, or with openssl.
Is there anyone here who successfully uses Rust Cargo on TinyCore or CorePure64?
If so, what had to be done to get around the download certificate issues?
Of course I am also interested in case someone managed to hamper Cargo from bloating your system! :)

Best regards,
Patrick

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 15499
Re: Rust Cargo not functional (certificate issues)
« Reply #1 on: October 22, 2023, 02:10:14 PM »
Do you need SSL_CERT_FILE=/usr/local/etc/ssl/certs/ca-certificates.crt or similar?

Offline mjmouse

  • Newbie
  • *
  • Posts: 7
Re: Rust Cargo not functional (certificate issues)
« Reply #2 on: February 24, 2026, 01:50:42 AM »
If anyone comes across this the fix is:

Code: [Select]
sudo ln -s /usr/local/etc/ssl /etc/ssl

That way cargo can be run without an extra SSL_CERT_FILE.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 15499
Re: Rust Cargo not functional (certificate issues)
« Reply #3 on: February 24, 2026, 06:13:44 AM »
..or alternatively, use this:
Code: [Select]
export SSL_CERT_FILE=/usr/local/etc/ssl/certs/ca-certificates.crt