getlantern/lantern#1941 Added ability to create Certificate from x509.Certificate