Add method for extracting public key, type and size from x509 objects
Check that certificate matches private key
Check if private key matches cert only if both key and cert are set
Wrong type.
Add cert:pubkey() to methods registry
Merge pull request #19 from Zash/zash/pubkey

Zash/pubkey
Merge pull request #17 from Zash/zash/checkkey

Verify that certificate and key belong together
SNI support.
SNI support.