Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CBenoit committed Aug 28, 2023
1 parent c25cfb5 commit 0169f74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devolutions-gateway/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ fn read_pub_key(

match data.format {
dto::PubKeyFormat::Spki => PublicKey::from_der(&value).context("bad SPKI"),
dto::PubKeyFormat::Rsa => PublicKey::from_rsa_der(&value).context("bad RSA value"),
dto::PubKeyFormat::Rsa => PublicKey::from_pkcs1(&value).context("bad RSA value"),
}
.map(Some)
}
Expand Down

0 comments on commit 0169f74

Please sign in to comment.