(data []byte)
| 287 | } |
| 288 | |
| 289 | func (c *Client) appendRootCertData(data []byte) { |
| 290 | config := c.GetTLSClientConfig() |
| 291 | if config.RootCAs == nil { |
| 292 | config.RootCAs = x509.NewCertPool() |
| 293 | } |
| 294 | config.RootCAs.AppendCertsFromPEM(data) |
| 295 | } |
| 296 | |
| 297 | // SetRootCertFromString set root certificates from string. |
| 298 | func (c *Client) SetRootCertFromString(pemContent string) *Client { |
no test coverage detected