added: include serial

This commit is contained in:
shimun 2023-02-22 16:01:10 +01:00
parent bccaa6935f
commit 4ff3cbe9d9
Signed by: shimun
GPG Key ID: E0420647856EA39E

View File

@ -292,9 +292,10 @@ impl From<&Certificate> for CertInfo {
.join(" ");
let opts = opts.trim();
let renew_command = format!(
"ssh-keygen -s ./ca_key {host_key} -I {} -n {} -V {:#x}:{:#x} {opts} {}.pub",
"ssh-keygen -s ./ca_key {host_key} -I {} -n {} -z {} -V {:#x}:{:#x} {opts} {}.pub",
escape(cert.key_id().into()),
escape(cert.valid_principals().join(",").into()),
cert.serial() + 1,
cert.valid_after(),
expiry_date.as_secs(),
escape(cert.key_id().into())