geesefs
geesefs copied to clipboard
How to ignore certificate validation
I have a custom minio endpoint which has certifcate issued by certmanager. When I try to use geesefs with endpoing https I am getting error certificate authority is not valid.
How can I either turn off https and use http or ignore the TLS certificate check?
Thanks
Hi, as far as I can see golang doesn't have an environment variable to do that. You can try to just add your own certificate into trusted certificates (/etc/ssl/certs/ca-certificates.crt). Or I can add an option if you really need to be able to bypass the check :-) it can be done from code.
I think better is to support option of http directly.
How about a way to specify additional CA certificates to trust? Many applications are able to do that.