aptible endpoints:tls:create

This command lets you create a new TLS Endpoint.

Examples

In all the examples below, $SERVICE represents the name of a Service for the app you are adding an Endpoint to.

Tip

If your app is using an Implicit Service (CMD), the service name is always cmd.

Create a new Endpoint using custom Container Ports and an existing Custom Certificate

In the example below, $CERTIFICATE_FINGERPRINT is the SHA-256 fingerprint of a Custom Certificate that exist in the same Environment as the App you are adding an Endpoint for.

Tip

Use the Dashboard to easily locate the Certificate Fingerprint for a given Certificate.

aptible endpoints:tls:create \
        --app "$APP_HANDLE" \
        --certificate-fingerprint "$CERTIFICATE_FINGERPRINT" \
        --ports 8000 8001 8002 8003 \
        "$SERVICE"

More Examples

This command is fairly similar in usage to aptible endpoints:https:create. Review the examples there.

Synopsis

Usage:
  aptible endpoints:tls:create [--app APP] SERVICE

Options:
      [--environment=ENVIRONMENT]
      [--app=APP]
  -r, [--remote=REMOTE]
      [--default-domain], [--no-default-domain]            # Enable Default Domain on this Endpoint
      [--internal], [--no-internal]                        # Restrict this Endpoint to internal traffic
      [--ports=one two three]                              # A list of ports to expose on this Endpoint
      [--ip-whitelist=one two three]                       # A list of IPv4 sources (addresses or CIDRs) to which to restrict traffic to this Endpoint
      [--certificate-file=CERTIFICATE_FILE]                # A file containing a certificate to use on this Endpoint
      [--private-key-file=PRIVATE_KEY_FILE]                # A file containing a private key to use on this Endpoint
      [--managed-tls], [--no-managed-tls]                  # Enable Managed TLS on this Endpoint
      [--managed-tls-domain=MANAGED_TLS_DOMAIN]            # A domain to use for Managed TLS
      [--certificate-fingerprint=CERTIFICATE_FINGERPRINT]  # The fingerprint of an existing Certificate to use on this Endpoint

Create an App TLS Endpoint