Skip to main content

Verify the installer

The installer (sugardaddy-install.sh) is the same file for every customer and holds no credentials. It carries the Sugardaddy publication keys and uses them to check everything it gets from SeguridadSI before using it:

  • the release is signed with a publication key, and it is a Cloud release;
  • every file it is about to run or start (instalar.sh, compose.yml, Caddyfile, the list of images) has the fingerprint written in that signed release;
  • the publication keys your node will trust from then on are the ones in the installer, not anything downloaded during the installation.

So the only thing you have to trust is the installer itself. The install line already checks its SHA-256. If you want to check it yourself, without relying on the line you were sent, do it in three steps.

  1. Download the installer and its signature:

    curl -fsSL https://…/install/latest -o sugardaddy-install.sh
    curl -fsSL https://…/install/latest/sig -o sugardaddy-install.sh.sig
  2. Verify it with the publication key that signed it. This shows which one it is (x-sugardaddy-key is its fingerprint):

    curl -fsSI https://…/install/latest/sig

    Save that key, from the list on this page, as sugardaddy.pem. With any other key the check fails even though the installer is the right one. For an ECDSA P-256 key:

    openssl dgst -sha256 -verify sugardaddy.pem -signature sugardaddy-install.sh.sig sugardaddy-install.sh

    It must answer Verified OK. For an Ed25519 key (OpenSSL 3):

    openssl pkeyutl -verify -pubin -inkey sugardaddy.pem -rawin -in sugardaddy-install.sh -sigfile sugardaddy-install.sh.sig

    It must answer Signature Verified Successfully. You can also compare sha256sum sugardaddy-install.sh with the SHA-256 on this page.

  3. Run it with the address from your install line:

    sudo bash sugardaddy-install.sh https://…/instalar/<code>

The same installer, with the same keys, is in the public repository (despliegue/nodo/etapa1.sh), and the Sugardaddy virtual machine carries it inside: it never runs anything downloaded at enrollment that is not in a signed release.

The installer needs curl and openssl. Checking an Ed25519 signature needs OpenSSL 3 (Ubuntu 22.04, Debian 12 or later).

Publication keys​

  • 4f72106be427861a: ECDSA P-256, Cloud releases
  • 5f264ebf8a7bb82e: Ed25519, Cloud releases
  • de7d00c8f7fd7452: ECDSA P-256, Cloud releases

Key 4f72106be427861a (ECDSA P-256):

-----BEGIN PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEK4wY19UHamiOcmyuoLsEQ9GvV6MZ
7G+Y6qb5C+Y3Pzdq/tNwVujF2gTAvf/Cv+TS0tqCbDPVGlvYxBsFzty7WQ==
-----END PUBLIC KEY-----

Key 5f264ebf8a7bb82e (Ed25519):

-----BEGIN PUBLIC KEY-----
MCowBQYDK2VwAyEAceDEute8W7AXB/02qZDMWZQFyM98tGUVh1Sfq3SAJFw=
-----END PUBLIC KEY-----

Key de7d00c8f7fd7452 (ECDSA P-256):

-----BEGIN PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE1AiclbVIwOsaieN2nmqKC7mwfeMH
bLVcFCgOG28OPGSYlF2AIl7JwAR1VL+1XJJ1myAe9muCXL8e0OuUNPbatw==
-----END PUBLIC KEY-----

The installer published with these keys has this SHA-256:

8f30f176876465d623e449928ea4f200c2589ad0a4250fdb63478cc80907ef7d