gohugoio / hugo

The world’s fastest framework for building websites.
https://gohugo.io
Apache License 2.0
75.61k stars 7.52k forks source link

enterprise proxy: error x509 certificate signed by unknown authority #6850

Open adejoux opened 4 years ago

adejoux commented 4 years ago

What version of Hugo are you using (hugo version)?

$ hugo version
Hugo Static Site Generator v0.64.0-241DB8F7 linux/amd64 BuildDate: 2020-02-04T09:10:23Z

Does this issue reproduce with the latest release?

yes

problem description

Enterprise proxy use their own ssl certificates for outside connections. So we have this kind of errors:

$ hugo server
Building sites … ERROR 2020/02/04 11:34:32 Failed to get JSON resource "https://api.twitter.com/1/statuses/oembed.json?id=877500564405444608&dnt=false": Get https://api.twitter.com/1/statuses/oembed.json?id=877500564405444608&dnt=false: x509: certificate signed by unknown authority
Built in 471 ms
Error: Error building site: logged 1 error(s)

It would be nice to be able to specify our own CA or to disable the certificate checking

Regards,

Alain

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help. If this is a bug and you can still reproduce this error on the master branch, please reply with all of the information you have about it in order to keep the issue open. If this is a feature request, and you feel that it is still relevant and valuable, please tell us why. This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.