Skip to content

Allow uploading a custom SSL certificate directly from the Add Domain form #4802

Description

@alishademan

What problem will this feature address?

Currently, users who want to use a custom SSL certificate must first navigate to the Certificates section, add the certificate and private key there, and then return to the domain configuration.

This makes the process unnecessarily complicated, especially when the certificate is only intended for a single domain. It is also not always clear how a custom certificate should be assigned to a specific domain.

Since configuring a custom SSL certificate only requires the certificate/full chain and the private key, it would be more convenient to provide these fields directly in the Add Domain and Edit Domain forms.

Describe the solution you'd like

Add a new SSL option called Custom Certificate to the Add Domain and Edit Domain forms.

When this option is selected, display two fields:

  • Certificate / Full Chain
  • Private Key

After the domain is saved, Dokploy should securely store the certificate and automatically configure Traefik to use it for that domain.

The certificate name could be generated automatically from the domain name, so the user would not need to create and manage a separate certificate entry manually.

It would also be helpful to validate that the certificate and private key are valid before saving.

Describe alternatives you've considered

The current workaround is to create the certificate separately in the Certificates section and then try to assign it to the domain.

Another alternative is to configure the certificate manually through Traefik, but this requires additional technical knowledge and may be harder to maintain after Dokploy updates.

Both approaches involve more steps than necessary for a certificate that is only intended for a single domain.

Additional context

This feature would be especially useful for:

  • Cloudflare Origin CA certificates
  • Wildcard certificates
  • Certificates purchased from third-party certificate authorities
  • Internal or private CA certificates
  • Users migrating existing certificates to Dokploy

The custom certificate could still be stored internally using Dokploy's existing certificate management system. The main request is to make it possible to enter and assign the certificate directly from the Add Domain or Edit Domain form.

Will you send a PR to implement it?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions