Saphan StudioDocs
Reference/Commands

saphan cert

Lets a second device trust the console's certificate, so you can sign in the Saphan Studio console from it and not only read.

Lets a second device trust the console's certificate, so you can sign in the Saphan Studio console from it and not only read. Signing needs a passkey, and a passkey only works on a page the device treats as secure. Neither command ever handles a private key.

saphan cert

saphan cert export

On the machine that serves the console, writes the certificate other devices must trust and prints its SHA-256 fingerprint. If the console certificate was issued by a CA, the CA is exported, so trust survives a renewal; a certificate whose issuer cannot be found is refused (console-certificate-issuer-absent). On a console without HTTPS it refuses with console-certificate-absent; create a certificate with saphan trust server-cert first. Choose exactly one of --ios or --pem.

saphan cert export --ios --out console.mobileconfig
saphan cert export --pem --out console.pem
saphan cert export
flagtypedefaultwhat it does
--castringThe issuing CA certificate (PEM or DER), when it is not in the certificate's own file or the configured client CA file; it is checked to have signed the certificate.
--certstringRead the console certificate from this PEM file instead of the one the gateway is configured with.
--hoststringThe host name the console is reached at, used in the profile's description. Defaults to this machine's hostname.
--iosboolfalseWrite an iPhone and iPad configuration profile (.mobileconfig). It is unsigned and iOS will say so; the fingerprint comparison is what verifies it.
--outstringWrite to this file instead of standard output.
--pemboolfalseWrite the certificate as PEM, for Android, Linux or another Mac.

saphan cert trust

On the Mac you want to sign from, fetches the certificate another machine's console presents, prints its fingerprint, and adds it to your login keychain, trusted for SSL only, after you type its first 16 characters back. Comparing that fingerprint with the one saphan cert export printed on the console machine is the whole security of this step: the download itself is not verified. A mismatch is refused and nothing is written. macOS only.

saphan cert trust
flagtypedefaultwhat it does
--confirmstringThe first 16 hex characters of the fingerprint, given here instead of typed at the prompt. Only use it with a fingerprint you have checked against the console machine.
--hoststringThe machine serving the console, for example console-host.local. Required.

Global options apply to every command — see Every command.

On this page