Invalid local network URL

I currently have a working https lan connection however I am getting the infamous:

Invalid local network URL
You have configured an HTTPS certificate in Home Assistant. This means that your internal URL needs to be set to a domain covered by the certficate.

my certificate was created using mkcerts with the following:

mkcert -key-file key.pem -cert-file cert.pem home.lan

here is my config file:

http:
  ssl_certificate: ./ssl/cert.pem
  ssl_key: ./ssl/key.pem
  ip_ban_enabled: true
  login_attempts_threshold: 5