# Custom Domains cause NET::ERR\_CERT\_AUTHORITY\_INVALID error

**URL:** <https://community.convox.com/t/custom-domains-cause-net-err-cert-authority-invalid-error/702>\
**Category:** Rack (Version 3)\
**Created:** [February 21, 2020, 2:41pm UTC](https://community.convox.com/t/custom-domains-cause-net-err-cert-authority-invalid-error/702 "2020-02-21T14:41:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![scott1](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.convox.com/scott1/32/131_2.png) [@scott1](https://community.convox.com/u/scott1)\
**Post date:** [February 21, 2020, 2:41pm UTC](https://community.convox.com/t/custom-domains-cause-net-err-cert-authority-invalid-error/702/1 "2020-02-21T14:41:21Z")

</div>

Hi!

I’ve set up a [custom domain](https://www.qa-commoncurriculum.com/) on a new K8s rack on AWS and when I visit it, I see an error that the certificate is invalid. Chrome says the site is using the “Kubernetes Ingress Controller Fake Certificate”. Any idea how to fix this?

---

<div class="post-metadata">

**Author:** ![scott1](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.convox.com/scott1/32/131_2.png) [@scott1](https://community.convox.com/u/scott1)\
**Post date:** [February 21, 2020, 3:59pm UTC](https://community.convox.com/t/custom-domains-cause-net-err-cert-authority-invalid-error/702/2 "2020-02-21T15:59:41Z")

</div>

Turns out wildcard domains don’t work (yet) in gen.3 racks. By taking out the wildcard host, it worked.

---

<div class="post-metadata">

**Author:** ![david.parry](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.convox.com/david.parry/32/158_2.png) [@david.parry](https://community.convox.com/u/david.parry)\
**Post date:** [July 24, 2020, 5:50am UTC](https://community.convox.com/t/custom-domains-cause-net-err-cert-authority-invalid-error/702/3 "2020-07-24T05:50:58Z")

</div>

Any chance you could share an example of the configs you set up?

I’m following the docs here:

> **[Convox Platform as a Service](https://docs.convox.com/deployment/custom-domains)**
>
> Convox makes it easy to deploy and manage your applications in the cloud. Built on Docker and Kubernetes, Convox provides a complete solution for local development, CI/CD, and autoscaling

And I’ve set up the CNAME to point to the router as reported by the `convox rack` command, but when I access it, I get the same message.

My DNS entry:

```auto
cvx-arc.arcadehub.co CNAME router.630a81e2f821244c.convox.cloud

```

My convox.yml:

```auto
services:
  web:
    build: .
    command: bundle exec unicorn -c config/unicorn.rb
    health: /health-k8s
    port: 3000
    domain: ${HOST}
    environment:
      - "*"

```

when I run `wget https://cvx-arc.arcadehub.co/health`, I get this:

```auto
--2020-07-24 15:28:47-- https://cvx-arc.arcadehub.co/health
Resolving cvx-arc.arcadehub.co (cvx-arc.arcadehub.co)... 13.239.103.172, 13.237.89.13, 52.63.139.65
Connecting to cvx-arc.arcadehub.co (cvx-arc.arcadehub.co)|13.239.103.172|:443... connected.
ERROR: cannot verify cvx-arc.arcadehub.co's certificate, issued by ‘CN=Kubernetes Ingress Controller Fake Certificate,O=Acme Co’:
  Unable to locally verify the issuer's authority.
ERROR: no certificate subject alternative name matches
	requested host name ‘cvx-arc.arcadehub.co’.
To connect to cvx-arc.arcadehub.co insecurely, use `--no-check-certificate'.

```

---

<div class="post-metadata">

**Author:** ![david.parry](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.convox.com/david.parry/32/158_2.png) [@david.parry](https://community.convox.com/u/david.parry)\
**Post date:** [July 24, 2020, 5:51am UTC](https://community.convox.com/t/custom-domains-cause-net-err-cert-authority-invalid-error/702/4 "2020-07-24T05:51:53Z")

</div>

```auto
$ convox env get HOST
cvx-arc.arcadeub.co

```

---

<div class="post-metadata">

**Author:** ![jeff.howe](https://avatars.discourse-cdn.com/v4/letter/j/e8c25b/32.png) [@jeff.howe](https://community.convox.com/u/jeff.howe)\
**Post date:** [July 24, 2020, 7:23pm UTC](https://community.convox.com/t/custom-domains-cause-net-err-cert-authority-invalid-error/702/5 "2020-07-24T19:23:58Z")

</div>

I’ve been having similar issues and my configuration is similar to yours. I am using Digital Ocean though (not sure if that makes a difference). I noticed it can sometimes take awhile for the cert to be generated (30-60 mins). I have been having problems though with the cert not being generated even after several hours though and there does not seem to be many options to debug the issue. The steps I’ve been taking are (a) delete and re-create the app (b) re-deploy and © update the HOST variable. After struggling for nearly a day it appears my certs have finally been generated. The last thing I did before they started working was to reduce the number of domains in the HOST variable from around 8 down to 3 and re-deploy. I can’t say whether that was related though or if it was just a random occurrence.

It would be nice if there were more insight into what was happening. I suspect maybe there was an error in the generation but it isn’t getting logged anywhere (that I can see).

Devs please take note, it would be nice if the tool gave better insight into what was happening. I noticed the CLI has `ssl` and `cert` commands but those look like there only for manual cert creation. At least when I run those on my rack/app the output is empty.
