Fix certificate extraction
Merge pull request #128 from puiterwijk/fix-certificate-extraction

Fix certificate extraction