danb35 / deploy-freenas

Python script to automate deploying TLS certificates to FreeNAS servers
GNU General Public License v3.0
200 stars 56 forks source link

Error importing on Truenas Scale Bluefin #64

Closed sebabordon closed 1 year ago

sebabordon commented 1 year ago

Hello!. I'm importing the certificate I get on a docker container for my domain (wildcard) to Truenas Scale Bluefin now. The script runs, but gives the following error:

python3 ./deploy_freenas.py
Certificate import successful
Certificate list successful
Setting active certificate successful
Traceback (most recent call last):
  File "/mnt/pool1/Archivos/Certificates/truenas/deploy-freenas/./deploy_freenas.py", line 215, in <module>
    if set(cert_data['san']) == set(new_cert_data['san']):

I do now know where the problem could be.

sebabordon commented 1 year ago

Solved!. The issue was that one of the certificates imported a few days ago had a blank in the SAN field inside Truenas. Removed that certificate (that was previously imported by this script) fixed the issue.