diff --git a/proxmox-rest-server/src/connection.rs b/proxmox-rest-server/src/connection.rs index 768b9361..a154182f 100644 --- a/proxmox-rest-server/src/connection.rs +++ b/proxmox-rest-server/src/connection.rs @@ -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, + cert: impl Into, + ) -> Self { + self.tls = Some(Tls::FilesPem(key.into(), cert.into())); self }