There was an error while loading. Please reload this page.
1 parent add2409 commit c909a90Copy full SHA for c909a90
1 file changed
src/network.rs
@@ -52,8 +52,8 @@ impl RedfishClientPoolBuilder {
52
///
53
/// By default self signed certificates will be accepted, since BMCs usually
54
/// use those.
55
- pub fn reject_invalid_certs(mut self) -> Self {
56
- self.accept_invalid_certs = false;
+ pub fn danger_accept_invalid_certs(mut self) -> Self {
+ self.accept_invalid_certs = true;
57
self
58
}
59
@@ -132,7 +132,7 @@ impl RedfishClientPool {
132
connect_timeout: DEFAULT_CONNECT_TIMEOUT,
133
timeout: DEFAULT_TIMEOUT,
134
// BMCs often have a self-signed cert, so usually this has to be true
135
- accept_invalid_certs: true,
+ accept_invalid_certs: false,
136
proxy: None,
137
138
0 commit comments