For everyone that does not know what X.509 means just read SSL instead of X.509 where it occurs.
I've uploaded a piece of code that is on my disk for too long. The project can be found in
The implementation is pretty basic. It only shows how the ASN.1 suite can be used to read something like a X.509 certificate. If some gets used to the object model beneath reading and creating structures like a X.509 certificate.
Reading can be done doing
X509 readCertificateFromPEM: '/path/to/pem/file.pem' asFileReference readStream
At the moment only PEM/BER format is supported. Others might come in the future.
FYI,
Norbert