New to HA, no IT experience, trying to get this set up.
Hardware: QNAP TS-453D, 32G RAM, 11TB free.
Software: QTS 5.0, updated to latest. Container Station
I am running HA in a Docker Container in Container station. I have a DDNS provided by QNAP: “my—name .myqnapcloud. com”. QNAP provides a Let’s Encrypt certificate under Control Panel–>Security–>SSL Certificate and Private Key. It expires 4/2022, and is set to automatically renew.
HA seems to require the addition of an HTTP section to point to the certificates and allow HTTPS access. This is the format I have seen:
http:
server_port: 12345
ssl_certificate: /etc/config/QcloudSSLCertificate/cert/fullchain.pem
ssl_key: /etc/config/QcloudSSLCertificate/cert/privkey.pem
However, the files the the above directory (/etc/config/QcloudSSLCertificate/cert) do not contain fullchain.pem or privkey.pem.
Files in the directory are: cert chain combine csr intermediate.pem key
The key file is locked with a password, likely administrator, which I have disabled currently for security.
The files without extensions appear to be ascii, and when opened in the text editor start with
BEGIN PRIVATE KEY or BEGIN CERTIFICATE. This implies that they could be renamed directly to .pem.
combine contains both private key and the contents of the cert file.
Intermediate.pem contains the contents of the chain file and one other certificate
There is no fullchain.pem or privkey.pem
BTW, I am aware of the concerns for exposing my QNAP to the internet, and I will not likely leave this accessible all the time. Just trying to get this particular configuration working.
My goal was to point my configuration.yaml at the appropriate directory/file, and the certificates would update automatically with the NAS.
My DDNS is working fine otherwise, and I can access my HA docker via “HTTP:// myname. myqnapcloud.com:8123”. I have port forwarded port 443 to port 8123 as well.
I swear I have used Search to the best of my ability. The closest I have gotten is
The files he references, stunnel.pem and backup.key, are present. These are located in etc/stunnel. If these can be used directly, problem solved. stunnel.pem appears to be the same as the combine file (key + cert). backup.key is identical to the key file alone
My questions:
- Is there a simple way to have the QNAP Let’s Encrypt certificates automatically be generated as fullchain.pem and privkey.pem?
- Is the QNAP Let’s Encrypt instance already creating these files, and are they hidden somewhere else? It has taken my 2 days to find the above directories.
- Can I create the fullchain.pem and privkey.pem from the above files? It seems like a simple rename and/or cut/paste. I would just have to manually do this every few months. If so, what parts of the above files go in each?
- Would HA simply accept these files as they are? Or must they be named fullchain.pem and privkey.pem?
Thanks,
Alan