A utility to download files that can replace the most basic curl file download usage with Authority Information Access (AIA) support for fetching intermediate TLS certificates on the fly if the remote server does not respond with them.
AIA is probably a bad idea in general but some times you don't have a choice.
curl https://akamai.download.microsoft.com/download/3/5/5/355d7943-a338-41a7-858d-53b259ea33f5/msodbcsql18_18.3.2.1-1_amd64.apk
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the webpage mentioned above.
$ aiaurl -h
Usage of aiaurl:
-O Write output to a local file named like the remote file
-o string
Write output to <file> instead of stdout
go install github.com/some-programs/aiaurl@latest