myENA / consul-backinator

Command line Consul backup and restore utility supporting KVs, ACLs and Queries
Mozilla Public License 2.0
226 stars 22 forks source link

add -skip-tls option to disable tls host verification (useful for self signed certs) #15

Closed vijaybandari closed 7 years ago

vijaybandari commented 7 years ago

Consul api does provides this option through TLSConfig.

aaronhurt commented 7 years ago

This can be accomplished currently by using the same method as the actual consul agent since it uses the same underlying API library. It respects all the same environment variables including CONSUL_HTTP_SSL_VERIFY that can be set to false to skip certificate verification.

Example

CONSUL_HTTP_SSL_VERIFY=false consul-backinator ....
aaronhurt commented 7 years ago

@vijaybandari did that work for you?

aaronhurt commented 7 years ago

Closing this as it should be resolved with either the environment variable or the fixes in #16 and #18

vijaybandari commented 7 years ago

Yeah, it worked.