You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 2, 2026. It is now read-only.
let oid_signature_algo = S::algorithm_identifier().oid;
117
120
let params_signature_algo = matchS::algorithm_identifier().parameters{
@@ -146,7 +149,57 @@ impl HomeServerCert {
146
149
let issuer = Issuer::get_own(db).await?.expect(
147
150
"The issuer entry for this sonata instance should have been added to the database on startup!",
148
151
);
149
-
let cert_serial = SerialNumber::from(cert.id_cert_tbs.serial_number);
152
+
let subject_public_key_pem = cert.id_cert_tbs.subject_public_key.public_key_info().to_pem(polyproto::der::pem::LineEnding::LF).map_err(|e| {
153
+
debug!("Received a public key which triggered an error when trying to convert it into PEM. Error: {e}; Public Key: {:?}", cert.id_cert_tbs.subject_public_key);
154
+
Error::new(crate::errors::Errcode::IllegalInput,Some(Context::new(None,None,None,Some("Public Key could not be converted to PEM representation"))))
0 commit comments