ezidam + jwt: get key, import private key, create jwt claims and sign them

This commit is contained in:
Philippe Loctaux 2023-03-18 16:14:26 +01:00
parent ef8d75ecee
commit e99115e174
14 changed files with 217 additions and 5 deletions

View file

@ -44,6 +44,10 @@ impl Key {
pub fn public_der(&self) -> &[u8] {
&self.public_der
}
pub fn is_revoked(&self) -> bool {
self.revoked_at.is_some()
}
}
impl From<DatabaseKeys> for Key {