Check that certificate matches private key
Check if private key matches cert only if both key and cert are set
Merge pull request #17 from Zash/zash/checkkey

Verify that certificate and key belong together