legacy-knowledge-base
Publicado Jul. 25, 0002

Use Custom certificate and Let's encrypt at same time in different domains

written-by

David Tello

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text
Note: please note that Liferay has renamed its Liferay Experience Could offerings to Liferay SaaS (formerly LXC) and Liferay PaaS (formerly LXC-SM).

Issue

  • We need to have some domains with custom certificates and others using provided Let's Encrypt certificates.
  • Is it possible setting this kind of configuration, and how can we do it?

Environment

  • Liferay PaaS

Resolution

  • In the below example, you can see how to configure a domain that uses the Let's Encrypt certificate ("mycustomdomain1.com") and other that uses a custom certificate ("mycustomdomain2.com") in the Webserver service's LCP.json file:
    loadBalancer: {
      "certs": [
       {
            "customDomains": [
            "mycustomdomain1.com"
          ]
       },
       {
            "customDomains": [
            "mycustomdomain2.com"
          ],
            "key": "@ssl-key-secret-hm",
            "crt": "@ssl-crt-secret-hm"
      }
    ]
    }
  • The custom certificate must not include any domain for which certificates are intended to be generated automatically.

Additional Information

did-this-article-resolve-your-issue

legacy-knowledge-base