mkottman/luacrypto — pull request #14 by philips (2012-03-14 17:10:24+00:00)
Title: x509_cert: add x509_cert to read out pubkey

With this patch we can now do things like verify a x509 cert against a x509_ca
then extract its pubkey and test a message signature.

cert = crypto.x509_cert()
cert:from_pem(server_cert)
kpub = cert:pubkey()
message = 'Hello world'
verified = crypto.verify('md5', message, signature, kpub)