Skip to content

TLS & SSL

Orb uses TLS for all HTTPS connections. This page covers certificate verification, client certificates (mTLS), and related options.

Use -k or --insecure to skip certificate verification:

Terminal window
orb -k https://self-signed.example.com

This is useful for:

  • Self-signed certificates
  • Development environments
  • Testing with invalid certificates

Use --cacert to specify a custom CA certificate for verification:

Terminal window
orb --cacert /path/to/ca.pem https://internal.example.com

This is useful for:

  • Internal PKI / private CAs
  • Self-signed root certificates
  • Corporate proxies with custom CAs

The CA certificate must be in PEM format.

For mutual TLS authentication, provide a client certificate:

If your PEM file contains both the certificate and private key:

Terminal window
orb --cert client-combined.pem https://secure.example.com

If they’re in separate files:

Terminal window
orb --cert client.pem --key client-key.pem https://secure.example.com

Orb supports:

  • PEM format (.pem) - Recommended
  • The private key can be RSA, ECDSA, or Ed25519

Orb uses TLS 1.2 and TLS 1.3. The version is automatically negotiated based on server support.

Use -v to see TLS handshake details:

Terminal window
orb -v https://example.com

Output includes:

* TLS handshake completed
* TLS version: TLSv1.3
* Cipher: TLS_AES_256_GCM_SHA384
* ALPN: h2
* Server certificate:
* Subject: CN=example.com
* Issuer: CN=DigiCert TLS RSA SHA256 2020 CA1
* Valid from: Jan 01 00:00:00 2024 GMT
* Valid until: Dec 31 23:59:59 2024 GMT
Terminal window
orb --cacert /etc/ssl/internal-ca.pem \
https://internal-api.company.com/health
Terminal window
orb --cert client.pem \
--key client-key.pem \
--cacert server-ca.pem \
https://mtls-api.example.com/secure
Terminal window
# Quick testing (insecure)
orb -k https://localhost:8443
# Proper way (add your dev CA)
orb --cacert dev-ca.pem https://localhost:8443
Terminal window
orb --cacert /etc/docker/certs.d/registry.example.com/ca.crt \
-u admin:password \
https://registry.example.com/v2/_catalog