• Michael Schurter's avatar
    config: accept CA PEM files with extra whitespace · 556adad2
    Michael Schurter authored
    Previously we did a validation pass over CA PEM files before calling
    Go's CertPool.AppendCertsFromPEM to provide more detailed error messages
    than the stdlib provides.
    
    Unfortunately our validation was overly strict and rejected valid CA
    files. This is actually the reason the stdlib PEM parser doesn't return
    meaningful errors: PEM files are extremely permissive and it's difficult
    to tell the difference between invalid data and valid metadata.
    
    This PR removes our custom validation as it would reject valid data and
    the extra error messages were not useful in diagnosing the error
    encountered.
    556adad2
To find the state of this project's repository at the time of any of these versions, check out the tags.