make pbs_tools::cert not depend on pbs-buildcfg

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller
2021-09-29 14:01:38 +02:00
parent b62edce929
commit 450105b0c3
5 changed files with 15 additions and 13 deletions

View File

@ -2,8 +2,6 @@ use anyhow::{bail, Error};
use proxmox::api::{api, cli::*};
use pbs_tools::cert::CertInfo;
use proxmox_backup::config;
use proxmox_backup::auth_helpers::*;
@ -11,7 +9,7 @@ use proxmox_backup::auth_helpers::*;
/// Display node certificate information.
fn cert_info() -> Result<(), Error> {
let cert = CertInfo::new()?;
let cert = proxmox_backup::cert_info()?;
println!("Subject: {}", cert.subject_name()?);