/// Buffer time before key expiry to trigger rotation. This ensures we rotate slightly before the
/// C-tor uses 3 hours for the link/auth key and 1 day for the signing key. Let's use 3 hours here,
/// If the key already exists, the error is ignored as this could happen if the system time drifts
/// valid_until value of the key store entry. If expired, the key is removed from the key manager.
/// Returns a tuple of (rotated, valid_until) where `rotated` indicates if the key was rotated and
/// Returns a tuple of (rotated, next_expiry) where `rotated` indicates if any key was rotated and
let cert_id_sign_ed = gen_signing_cert(&ed_id_kp, &kp_relaysign_id, now + KEY_DURATION_30DAYS)?;