dokploy icon indicating copy to clipboard operation
dokploy copied to clipboard

Support for self-signed SSL certificates for private domains

Open s1nyx opened this issue 1 year ago • 4 comments

What problem will this feature address?

Currently, Dokploy only supports Let's Encrypt certificates for SSL/TLS termination. This creates a significant limitation for users deploying applications on private networks with internal domains (e.g., myapp.company.lan, internal.example.corp, dev.company.local).

I'm always frustrated when I can't enable HTTPS for my internal applications because:

  • Let's Encrypt cannot validate domain ownership for private/internal domains through public DNS or HTTP challenges
  • Private networks are isolated from the internet, making ACME challenges impossible
  • Manual certificate management is complex and time-consuming
  • Users are forced to either use HTTP (insecure) or manually manage certificates outside of Dokploy

This affects enterprise environments, development teams, and anyone running applications on private infrastructure where secure internal communication is essential.

Describe the solution you'd like

Add support for auto-generated self-signed SSL certificates specifically designed for private/internal domains.

Core features: 1. New certificate type: Add "self-signed" option to the existing certificate provider dropdown alongside "Let's Encrypt", "None", and "Custom" 2. Automatic certificate generation: When a user selects "Self-Signed" for a domain, Dokploy should automatically:

  • Generate a self-signed certificate with the domain as Common Name (CN)
  • Include Subject Alternative Names (SANs) for the specified domain
  • Create the certificate with configurable validity (1-10 years, default 1 year)
  • Store it in the existing certificate management system
  • Configure Traefik automatically 3. Smart domain detection: Automatically suggest self-signed certificates for domains with private TLDs (.lan, .local, .internal, .corp, etc.) 4. UI enhancements:
  • Clear warnings about browser security implications
  • Instructions for trusting certificates in browsers
  • Configurable certificate properties (validity period, organization name)
  • Support for multiple domains in a single certificate 5. Integration: Seamlessly integrate with existing domain and certificate management workflows, requiring no changes to current configurations.

Describe alternatives you've considered

Alternative 1: Manual Certificate Upload Users could generate self-signed certificates externally and upload them via the existing "Custom" certificate option Downside: Requires technical knowledge, manual certificate management, and renewal complexity

Alternative 2: Private CA Integration Support for private Certificate Authorities Downside: Much more complex to implement and requires additional infrastructure setup

Alternative 3: HTTP-only for Private Networks Simply use HTTP without SSL for internal applications Downside: Unacceptable security practice, especially for enterprise environments

Alternative 4: External Tools Integration Integrate with tools like mkcert or step-ca Downside: Adds external dependencies and complexity

Alternative 5: Wildcard Certificate Support Allow users to upload wildcard certificates for entire domains Downside: Still requires manual certificate generation and doesn't solve the automation problem

The proposed self-signed certificate generation is the most user-friendly solution that maintains Dokploy's philosophy of simplicity while addressing the core security need.

Additional context

No response

Will you send a PR to implement it?

Maybe, need help

s1nyx avatar Sep 14 '25 15:09 s1nyx

💡 Additional Suggestion

@s1nyx In addition to the self-signed option, it would be great if Dokploy supported custom ACME providers.

That way, users could even deploy their own ACME service (e.g. step-ca) to manage certificates internally and simply point Dokploy to that ACME directory URL or to any enterprise solutions.

Traefik already supports multiple certResolvers, so Dokploy could expose this flexibility by: • Adding a “Custom ACME” option in the certificate provider dropdown • Allowing users to specify the ACME directory URL and optional EAB credentials • Optionally pre-configuring defaults for popular providers (Let’s Encrypt, ZeroSSL, Buypass, Google Trust Services)

This way, Dokploy would cover: • Self-signed certs → for private/internal domains • Custom ACME → for enterprises or teams that want to run their own CA or use a different provider

It would keep things simple while giving advanced users maximum flexibility.


billnice250 avatar Sep 20 '25 09:09 billnice250

I was able to set a self-signed certificate. Maybe this issue is old, 'cause now Dokploy has a Certificates section on the menu.

vsanasc avatar Feb 25 '26 21:02 vsanasc

Yes, I confirm that the current version of dokploy supports custom certificates resolvers, I still have to try it but so far seems very promising as it relates to this issue.

billnice250 avatar Feb 28 '26 01:02 billnice250

I was able to set a self-signed certificate. Maybe this issue is old, 'cause now Dokploy has a Certificates section on the menu.

How did you manage to add certificates to the domain? I also have added a certificate in the certificate menu. However, when trying to set that certificate for the Dokploy domain, there is only Let's Encrypt, similar to the project's domain option.

Image

Server domain

Image Image

Project domain

I do have a certificate in the certificate menu:

Image

nhridoy avatar May 06 '26 08:05 nhridoy