Issue #8: Added X509 certificate support (WIP)