Skip to content

Commit c909a90

Browse files
committed
do not accept invalid certs by default
1 parent add2409 commit c909a90

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/network.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ impl RedfishClientPoolBuilder {
5252
///
5353
/// By default self signed certificates will be accepted, since BMCs usually
5454
/// use those.
55-
pub fn reject_invalid_certs(mut self) -> Self {
56-
self.accept_invalid_certs = false;
55+
pub fn danger_accept_invalid_certs(mut self) -> Self {
56+
self.accept_invalid_certs = true;
5757
self
5858
}
5959

@@ -132,7 +132,7 @@ impl RedfishClientPool {
132132
connect_timeout: DEFAULT_CONNECT_TIMEOUT,
133133
timeout: DEFAULT_TIMEOUT,
134134
// BMCs often have a self-signed cert, so usually this has to be true
135-
accept_invalid_certs: true,
135+
accept_invalid_certs: false,
136136
proxy: None,
137137
}
138138
}

0 commit comments

Comments
 (0)