LogoLogo
Run to Console
  • ClawCloud Run
    • Document
    • Getting Started
      • Create a DevBox
      • Deploy Database
      • Deploy from Docker
      • Deploy from Template
    • Guide
      • App Launchpad
        • Install Application
        • Update Application
        • Custom Domain
        • Exposing Multiple Ports
        • Environment Variables
        • Configuration Files
        • Auto Scaling
        • Persistent Storage
        • Custom Domain Certificates
      • Devbox
        • Devbox List
        • Devbox Details
        • Devbox Release
      • Database
        • PostgreSQL
        • MySQL
        • Redis
        • MongoDB
        • Kafka
        • Milvus
      • Object Storage
      • Advanced
        • Workspace
        • Terminal
        • Cron Job
        • KubeConfig
    • Pricing
    • Billing & Usage
    • Migration
      • Migrate from Docker
      • Migrate from Docker Compose
    • Architecture
      • Devbox Architecture
      • System Architecture
      • User Architecture
    • Legal
      • Privacy Policy
      • Terms and Conditions
      • Data Processing Addendum
    • Changelog
    • Best Practice
    • FAQ
    • More
      • Abuse Complaint
    • Help
  • Blog
Powered by GitBook

Copyright @ 2023-Present CLAWCLOUD. All Rights Reserved.

On this page
  • Overview
  • Step 1: Create a TLS Secret
  • Step 2: Update Ingress Configuration
  • Verification
  • Key Notes

Was this helpful?

Export as PDF
  1. ClawCloud Run
  2. Guide
  3. App Launchpad

Custom Domain Certificates

Learn how to configure custom certificates for your domain on ClawCloud Run, including creating TLS Secrets and modifying Ingress configurations to secure application access.

PreviousPersistent StorageNextDevbox

Last updated 2 months ago

Was this helpful?

Overview

ClawCloud Run integrates for automated TLS certificate management. While the platform auto-generates and renews certificates when configuring domains via the Application Management dashboard, you can also use custom certificates for full control.

⚠️ Prerequisite: Ensure your custom domain is already configured before proceeding.


Step 1: Create a TLS Secret

  1. Open the Terminal in ClawCloud Run.

  2. Run the following commands to generate TLS files and create a Kubernetes Secret:

    # Create tls.crt (replace "xxxx" with your certificate content)  
    cat > tls.crt <<EOF
    -----BEGIN CERTIFICATE-----
    xxxx
    -----END CERTIFICATE-----
    EOF
    ​
    # Create tls.key (replace "xxxx" with your private key)  
    cat > tls.key <<EOF
    -----BEGIN RSA PRIVATE KEY-----
    xxxx
    -----END RSA PRIVATE KEY-----
    EOF
    ​
    # Create the TLS Secret  
    kubectl create secret tls <secret-name> --cert tls.crt --key tls.key
    ​
    # Verify the Ingress associated with your app  
    kubectl get ingress

Step 2: Update Ingress Configuration

Bind the custom certificate to your application’s Ingress:

# Replace:  
# - "clawcloud.xyz" with your domain  
# - "network-xxx" with your Ingress name  
# - "network-test" with your Secret name  
kubectl patch ingress <ingress-name> -p '{"spec":{"tls":[{"hosts":["your-domain.com"],"secretName":"<secret-name>"}]}}'

Verification

Access your application via the custom domain. The padlock icon in the browser should confirm HTTPS is active.


Key Notes

  • 🔒 Security: Never commit certificate files (tls.crt/tls.key) to version control.

  • 🔄 Renewals: For custom certificates, manually renew and update the Secret before expiration.

  • ⚠️ Formatting: Ensure certificates and keys use correct PEM encoding.

Example Workflow:

  1. Deploy an app with a custom domain app.yourbrand.com.

  2. Generate a Let’s Encrypt certificate locally.

  3. Create a Secret named prod-tls.

  4. Patch the Ingress to reference prod-tls.

cert-manager