move all x509 logic to the class - add decoding method