rest-server: generic certificate path types
to not require a PathBuf on the caller side Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
2f2f5cfcd8
commit
6873926dea
@ -48,8 +48,12 @@ impl TlsAcceptorBuilder {
|
||||
self
|
||||
}
|
||||
|
||||
pub fn certificate_paths_pem(mut self, key: PathBuf, cert: PathBuf) -> Self {
|
||||
self.tls = Some(Tls::FilesPem(key, cert));
|
||||
pub fn certificate_paths_pem(
|
||||
mut self,
|
||||
key: impl Into<PathBuf>,
|
||||
cert: impl Into<PathBuf>,
|
||||
) -> Self {
|
||||
self.tls = Some(Tls::FilesPem(key.into(), cert.into()));
|
||||
self
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user