add new export extract_pem_encoded_public_key and tests

* User "get" actions are expected to return only the public key in PEM x509
  format. Added this function to extract that data from a certificate.