Add properties to OFX509Certificate #141

Open
opened 2026-08-25 00:48:53 +02:00 by js · 2 comments
Owner

Right now, it is only an opaque object that can be loaded from disc. However, for #140 to be useful, it needs to be possible to verify the peer certificate ­– either by checking it against a chain or by checking its fingerprint against a whitelist.

Right now, it is only an opaque object that can be loaded from disc. However, for #140 to be useful, it needs to be possible to verify the peer certificate ­– either by checking it against a chain or by checking its fingerprint against a whitelist.
js added this to the 1.6 milestone 2026-08-25 00:48:53 +02:00
js self-assigned this 2026-08-25 00:48:53 +02:00
Author
Owner

Some properties were added, with one implementation per TLS library. Then this was deemed a stupid idea, so OFX509Certificate was rewritten to be entirely ObjFW-native and not use a TLS library.

The ASN.1 and DER parser required for this (#5) was completed. Every field of Certificate is exposed, as is every field of TBSCertificate. But some of the fields in TBSCertificate are SEQUENCEs themselves, and not all of those have all their fields exposed yet. This is work in progress.

But fingerprinting the entire certificate is already possible. As is getting the public key and fingerprinting that, to obtain a fingerprint that is stable between renewals.

Some properties were added, with one implementation per TLS library. Then this was deemed a stupid idea, so OFX509Certificate was rewritten to be entirely ObjFW-native and not use a TLS library. The ASN.1 and DER parser required for this (#5) was completed. Every field of Certificate is exposed, as is every field of TBSCertificate. But some of the fields in TBSCertificate are SEQUENCEs themselves, and not all of those have all their fields exposed yet. This is work in progress. But fingerprinting the entire certificate is already possible. As is getting the public key and fingerprinting that, to obtain a fingerprint that is stable between renewals.
Author
Owner

This has been completed, however, the extensions are not implemented yet. As some of them are mandatory, this is required, too.

This has been completed, however, the extensions are not implemented yet. As some of them are mandatory, this is required, too.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ObjFW/ObjFW#141
No description provided.