Cloudflare SSL with TrueNAS-12.0-U6

fanpero87

Cadet
Joined
Sep 27, 2021
Messages
3
Hello,
I installed TrueNAS 12 and I was trying to enable a domain name with SSL from Cloudflare but so far I haven't been able to make it work.
- the Domain name on cloudflare is: "insidejoke.tk" that has an A record pointing to the IP of the TrueNAS server. there is also an A record for "truenas" pointing to the same IP.
- On the TrueNAS UI, the hostname is "truenas.insidejoke.tk"

Here is what I've done so far:
- On Cloudflare under SSL/TLS:
Overview => value set to "Full"
Edge Certificate => There is an active certificate for hosts "*.insidejoke.tk, insidejoke.tk"
Client Certificate => There is an active certificate
Origin Server => There is a certificate for "*.insidejoke.tk, insidejoke.tk"

- On TrueNAS under System/Certificates
Created a new "Cloudflare" certificate by clicking Add and selecting the type "Import Certificate". Then, I pasted he Certificate and Private Key and hit Submit.

- On TrueNAS under System/General changed the GUI SSL Certificate for "Cloudflare" and marked the "Web Interface http-https redirect

- On TrueNAS Services S3 I selected the "Cloudflare" certificate and enable the service.

If I go the https:insidejoke.tk I got that my connection is not secure

If I try
Code:
curl -I insidejoke.tk:9000
HTTP/1.0 400 Bad Request

Or this
Code:
curl -I https://insidejoke.tk:9000
curl: (77) schannel: next InitializeSecurityContext failed: SEC_E_UNTRUSTED_ROOT (0x80090325) - The certificate chain was issued by an authority that is not trusted.


How can I fix these errors? and enable SSL connection to my TrueNAS server and MinIO service?

Thanks.
 
Top