ezidam + jwt: get key, import private key, create jwt claims and sign them
This commit is contained in:
parent
ef8d75ecee
commit
e99115e174
14 changed files with 217 additions and 5 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue