You can go your own route using FFI or use only the smalltalk method. For the latter, you can download the project from
http://smalltalkhub.com/#!/~NorbertHartl/X509
for reading certificates. You can download it by opening the playing field and doing:
Metacello new
configuration: 'X509';
version:
repository: 'http://smalltalkhub.com/mc/NorbertHartl/X509/main';
load.
Implementation there can be used with
X509 readCertificateFromPEM: '/path/to/pem/file.pem' asFileReference readStream
The implementation of the X509 is quite simple and gives you an idea of how to work with the included ASN.1 package. If you have any questions, please contact me directly. I really want to help with this.
source
share