Add properties to OFX509Certificate #141
Labels
No labels
Arch
AMD64
Arch
m68k
Arch/PowerPC64
Bug
Documentation
Duplicate
Feature
Infeasible
Invalid
Nice to Have
ObjC++
ofarc
ofhttp
OS
AmigaOS
OS
FreeBSD
OS
Linux
OS
macOS
OS
Windows
Out of Scope
Question
Runtime
Security
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ObjFW/ObjFW#141
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
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.
This has been completed, however, the extensions are not implemented yet. As some of them are mandatory, this is required, too.