OptionTrustedCert returns a ClientOption that makes the client trust the provide self-signed cert signature. The value should be the 20 byte hex prefix of the SHA-256 of the cert, as printed by the perkeepd server on start-up. If cert is empty, the option has no effect.
(cert string)
| 383 | // |
| 384 | // If cert is empty, the option has no effect. |
| 385 | func OptionTrustedCert(cert string) ClientOption { |
| 386 | // TODO: remove this whole function now that we have LetsEncrypt? |
| 387 | return optionTrustedCert(cert) |
| 388 | } |
| 389 | |
| 390 | type optionTrustedCert string |
| 391 |
no test coverage detected