open-consul/consul
Nelson Elhage 0a2476b20e Restore the 0.2 TLS verification behavior.
Namely, don't check the DNS names in TLS certificates when connecting to
other servers.

As of golang 1.3, crypto/tls no longer natively supports doing partial
verification (verifying the cert issuer but not the hostname), so we
have to disable verification entirely and then do the issuer
verification ourselves. Fortunately, crypto/x509 makes this relatively
straightforward.

If the "server_name" configuration option is passed, we preserve the
existing behavior of checking that server name everywhere.

No option is provided to retain the current behavior of checking the
remote certificate against the local node name, since that behavior
seems clearly buggy and unintentional, and I have difficulty imagining
it is actually being used anywhere. It would be relatively
straightforward to restore if desired, however.
2014-06-28 13:32:42 -07:00
..
structs consul: Adding support for optional session name 2014-06-09 11:42:28 -07:00
catalog_endpoint.go consul: Sort datacenter list. Fixes #198 2014-06-06 14:12:40 -07:00
catalog_endpoint_test.go Remove TODO comments 2014-05-26 23:44:46 +02:00
client.go Restore the 0.2 TLS verification behavior. 2014-06-28 13:32:42 -07:00
client_test.go Wait for joining member in `TestClient_JoinLAN` 2014-05-27 00:55:20 +02:00
config.go Restore the 0.2 TLS verification behavior. 2014-06-28 13:32:42 -07:00
config_test.go Restore the 0.2 TLS verification behavior. 2014-06-28 13:32:42 -07:00
endpoints.md consul: remove explicit leave, use reconciliation 2014-05-28 16:32:24 -07:00
fsm.go Rename shared msgpack handle 2014-06-08 14:02:42 -07:00
fsm_test.go consul: Testing FSM snapshot of sessions 2014-05-20 16:25:29 -07:00
health_endpoint.go consul: Merging BlockingQuery into QueryOptions 2014-04-21 11:31:15 -07:00
health_endpoint_test.go gofmt 2014-05-20 16:25:29 -07:00
internal_endpoint.go consul: Rename Misc RPC to Internal 2014-04-30 23:43:59 -04:00
internal_endpoint_test.go gofmt 2014-05-20 16:25:29 -07:00
kvs_endpoint.go consul: Adding support for lock-delay in sessions 2014-05-20 16:25:29 -07:00
kvs_endpoint_test.go consul: Adding support for lock-delay in sessions 2014-05-20 16:25:29 -07:00
leader.go consul: Provide output for serfHealth check. Fixes #176. 2014-06-09 16:07:22 -07:00
leader_test.go Log peers when `TestLeader_LeftServer` fail 2014-05-30 21:18:37 +02:00
mdb_table.go consul: Adding Defer to MDBTxn 2014-05-20 16:25:28 -07:00
mdb_table_test.go Rename shared msgpack handle 2014-06-08 14:02:42 -07:00
notify.go consul: Adding a simple notification mechansim 2014-02-04 12:21:30 -08:00
notify_test.go consul: Adding a simple notification mechansim 2014-02-04 12:21:30 -08:00
pool.go Restore the 0.2 TLS verification behavior. 2014-06-28 13:32:42 -07:00
raft_rpc.go Restore the 0.2 TLS verification behavior. 2014-06-28 13:32:42 -07:00
rpc.go Rename shared msgpack handle 2014-06-08 14:02:42 -07:00
serf.go consul: Pass protocol version for leader forwarding 2014-05-28 16:32:24 -07:00
server.go Restore the 0.2 TLS verification behavior. 2014-06-28 13:32:42 -07:00
server_test.go Re-configure `LeaderLeaseTimeout` to pass validation 2014-05-30 20:57:39 +02:00
session_endpoint.go agent: First pass at session endpoints 2014-05-20 16:25:29 -07:00
session_endpoint_test.go consul: Adding support for optional session name 2014-06-09 11:42:28 -07:00
state_store.go Support wildcard for check lookup. Fixes #152 2014-05-21 12:45:12 -07:00
state_store_test.go Support wildcard for check lookup. Fixes #152 2014-05-21 12:45:12 -07:00
status_endpoint.go Adding a Status.Peers endpoint to get peerset 2013-12-23 11:39:29 -08:00
status_endpoint_test.go Rename shared msgpack handle 2014-06-08 14:02:42 -07:00
util.go consul: Store the protocol version for a server 2014-05-28 16:32:24 -07:00
util_test.go consul: Store the protocol version for a server 2014-05-28 16:32:24 -07:00