Closed bernhardreiter closed 2 years ago
A warning comes from the downloader, if a URL is given instead of a domain, e.g.
csaf_downloader https://localhost:9443/.well-known/csaf-aggregator/local-dev-provider2/provider-metadata.json
2022/06/23 15:07:41 Error fetching 'https://localhost:9443/.well-known/csaf-aggregator/local-dev-provider2/provider-metadata.json': Get "https://localhost:9443/.well-known/csaf-aggregator/local-dev-provider2/provider-metadata.json": x509: certificate signed by unknown authority
2022/06/23 15:07:41 error: no provider-metadata.json found for 'https://localhost:9443/.well-known/csaf-aggregator/local-dev-provider2/provider-metadata.json
0.9.2-38-g0b19782
For a domain the same message is missing.
I would guess I has something to do with the silencing of the load error in csaf.LoadProviderMetadataFromURL
.
Same in csaf.LoadProviderMetadatasFromSecurity
.
If finding data fails because of the TLS certificate of the HTTPS server cannot be validated, there is no hint in the output.
User will want to know what the reason for the failure ist.
Expectation: See a TLS certificate validation error message, so that the user can inquire further.
Reproduce
Observations:
Expectation: a message should contain the TLS validation error.
Here is a good example from curl, trying to access one of the urls: