Closed Sheraff closed 1 year ago
For this to work, we need to have SSL enabled; for SSL we need certificates; for certificates, we need a domain name. So I'm creating a domain name that will resolve to a local IP. This will require an internet connection to work, but once the DNS is resolved once it might be cached in something (router, browser) and be available even when fully offline.
Alternatively, we can use self-signed certificates and forgo the internet DNS resolution. This requires connecting to a static intranet IP (server is already on a static IP) with a specific port (can I manage to configure Apache for exposing some other port than 3000?). This should be secure enough as long as I don't have a hacker on the wifi.
Alternatively, we can use self-signed certificates and forgo the internet DNS resolution. This requires connecting to a static intranet IP (server is already on a static IP) with a specific port (can I manage to configure Apache for exposing some other port than 3000?). This should be secure enough as long as I don't have a hacker on the wifi.
Nope. This is forbidden too now: self-signing could (?) work but we either need
and / or
Without these, we get a new error:
ERR_CERT_COMMON_NAME_INVALID
SSL: no alternative certificate subject name matches target host name
Works like a charm in localhost dev:
But when deployed: