mirror of
https://github.com/rclone/rclone.git
synced 2025-11-23 21:44:49 +02:00
build: fix tls: failed to verify certificate: x509: negative serial number
Before Go 1.23, x509.ParseCertificate accepted certificates with negative serial numbers. Rejecting these certificates caused a small number of users to see this error. From Go 1.23 debug flags can be added to go.mod so this change adds a debug flag to ensure negative serial numbers are still allowed since this is a spec violation, not a security issue. See: https://forum.rclone.org/t/ssl-validation-broken-between-v1-69-1-latest-version/
This commit is contained in:
Reference in New Issue
Block a user