X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=PVE%2FAccessControl.pm;fp=PVE%2FAccessControl.pm;h=6ac99ac28d716d321d2778bfd4e80f441701044d;hb=b8055a4fc058ae67324965517d0dbf6de43c4c34;hp=013226819579cb79be45d8749f478a5d88bc21e3;hpb=e770e6672fdb54c30a787d71043a84b010a8e67f;p=pve-access-control.git diff --git a/PVE/AccessControl.pm b/PVE/AccessControl.pm index 0132268..6ac99ac 100644 --- a/PVE/AccessControl.pm +++ b/PVE/AccessControl.pm @@ -171,6 +171,7 @@ sub rotate_authkey { if ($old) { eval { my $pem = $old->get_public_key_x509_string(); + # mtime is used for caching and ticket age range calculation PVE::Tools::file_set_contents($pve_auth_key_files->{pubold}, $pem); }; die "Failed to store old auth key: $@\n" if $@; @@ -178,6 +179,8 @@ sub rotate_authkey { eval { my $pem = $new->get_public_key_x509_string(); + # mtime is used for caching and ticket age range calculation, + # should be close to that of pubold above PVE::Tools::file_set_contents($pve_auth_key_files->{pub}, $pem); }; if ($@) {