Skip to content

Facing TLS error on Technitium DNS #1976

@EliteSalman

Description

@EliteSalman

Hi,

I facing a mysterious issue on my Technitium DNS Server,

I used a tls certificate pfx file all working fine decoder.link showing on port 853 valid certificate and also from the kdig tool the DoT working perfectly but on Android it's showing invalid certificate I don't know why I using ZeroSSL then I checked the log and got this:-

[2026-06-08 16:04:25 UTC] DNS Server encountered an error while updating Web Service TLS Certificate: /etc/dns/tls/cert_new.pfx
System.Security.Cryptography.CryptographicException: The certificate data cannot be read with the provided password, the password may be incorrect.
at System.Security.Cryptography.X509Certificates.X509CertificateLoader.ThrowWithHResult(String message, Int32 hResult)
at System.Security.Cryptography.X509Certificates.X509CertificateLoader.ReadCertsAndKeys(BagState& bagState, ReadOnlyMemory1 data, ReadOnlySpan1& password, Pkcs12LoaderLimits loaderLimits)
at System.Security.Cryptography.X509Certificates.X509CertificateLoader.LoadPkcs12Collection(ReadOnlyMemory1 data, ReadOnlySpan1 password, X509KeyStorageFlags keyStorageFlags, Pkcs12LoaderLimits loaderLimits)
at System.Security.Cryptography.X509Certificates.X509CertificateLoader.LoadFromFile[T](String path, ReadOnlySpan1 password, X509KeyStorageFlags keyStorageFlags, Pkcs12LoaderLimits loaderLimits, LoadFromFileFunc1 loader)
at System.Security.Cryptography.X509Certificates.X509CertificateLoader.LoadPkcs12CollectionFromFile(String path, ReadOnlySpan`1 password, X509KeyStorageFlags keyStorageFlags, Pkcs12LoaderLimits loaderLimits)
at DnsServerCore.DnsWebService.LoadWebServiceTlsCertificate(String tlsCertificatePath, String tlsCertificatePassword) in Z:\Technitium\Projects\DnsServer\DnsServerCore\DnsWebService.cs:line 2554
at DnsServerCore.DnsWebService.b__80_0(Object state) in Z:\Technitium\Projects\DnsServer\DnsServerCore\DnsWebService.cs:line 2513
[2026-06-08 16:04:28 UTC] DNS Server log config file was saved: /etc/dns/log.config

Best Regards,
Salman Shafi

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions