Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Certificate file named 'cert.pfx' deleted on 'Save Settings' #909

Open
labodj opened this issue Apr 23, 2024 · 1 comment
Open

Certificate file named 'cert.pfx' deleted on 'Save Settings' #909

labodj opened this issue Apr 23, 2024 · 1 comment

Comments

@labodj
Copy link

labodj commented Apr 23, 2024

Description:
When running the Technitium software in a Docker container on ARMv8 architecture on Linux, adding a root certificate file to the base path /etc/dns/ named 'cert.pfx' results in the file being automatically deleted when clicking "Save Settings" under 'Settings - Optional Protocols'. However, the file is retained if renamed to something other than 'cert.pfx', for example, 'certificate.pfx'.

Environment:
Software Version: 12.1
Operating System: Manjaro Linux (ARMv8)
Docker Version: 26.0.2

Steps to Reproduce:
Run Technitium software in a Docker container on ARMv8 architecture.
Create a file named cert.pfx under the directory mounted on /etc/dns (eg: touch /home/user/docker/technitium-dns/cert.pfx)
Access the webinterface.
Navigate to 'Settings - Optional Protocols'.
Click "Save Settings".
Observe that the 'cert.pfx' file is automatically deleted.

Expected Behavior:
The software should allow the addition and retention of a certificate file named 'cert.pfx' when saved in the 'Settings - Optional Protocols' section.

Actual Behavior:
The 'cert.pfx' file is automatically deleted upon clicking "Save Settings".

Workaround:
Rename the 'cert.pfx' file to something other than 'cert.pfx', for example, 'certificate.pfx', and then save the settings.

@labodj labodj changed the title Certificate File 'cert.pfx' deleted on 'Save Settings' Certificate file named 'cert.pfx' deleted on 'Save Settings' Apr 23, 2024
@ShreyasZare
Copy link
Member

Thanks for the post. The reason for this issue is that the self signed cert feature uses cert.pfx to store the self signed cert. And when the option for self signed cert is disabled, the file is deleted.

Will get to use a different file name for the self signed cert to make it clear so that it avoids such issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants