{
  "id": "pem_public_key",
  "kind": "datatype",
  "status": "draft",
  "name": "Public key (PEM)",
  "doc": "Public key in the PEM textual encoding: the Base64 of a DER SubjectPublicKeyInfo structure (RFC 5280) between -----BEGIN PUBLIC KEY----- and -----END PUBLIC KEY----- (RFC 7468, section 13). OpenSSL also writes RSA keys in the PKCS #1 form with the label RSA PUBLIC KEY. A public key is not secret; for the private key see x509_private_key.",
  "is_pii": false,
  "categories": [
    "cryptography"
  ],
  "langs": [
    "common"
  ],
  "regexp": "^-----BEGIN (?:RSA )?PUBLIC KEY-----[\\s\\S]+-----END (?:RSA )?PUBLIC KEY-----$",
  "examples": [
    {
      "value": "-----BEGIN PUBLIC KEY-----\nMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEn1LlwLN/KBYQRVH6HfIMTzfEqJOVztLe\nkLchp2hi78cCaMY81FBlYs8J9l7krc+M4aBeCGYFjba+hiXttJWPL7ydlE+5UG4U\nNkn3Eos8EiZByi9DVsyfy9eejh+8AXgp\n-----END PUBLIC KEY-----",
      "description": "Example P-384 key of RFC 7468, section 13",
      "valid": true
    },
    {
      "value": "-----BEGIN PGP PUBLIC KEY BLOCK-----\n\nxjMEU/NfCxYJKwYBBAHaRw8BAQdAPwmJlL3ZFu1AUxl5NOSofIBzOhKA1i+AEJku\nQ+47JAY=\n-----END PGP PUBLIC KEY BLOCK-----",
      "description": "OpenPGP public key block",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://www.rfc-editor.org/rfc/rfc7468#section-13"
    },
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/Privacy-Enhanced_Mail"
    }
  ],
  "quality": {
    "score": 68,
    "missing": [
      "second example",
      "mapping (Wikidata, Schema.org, ...)",
      "translation",
      "detector coverage"
    ]
  },
  "source": {
    "path": "data/datatypes/any/cryptography/pem_public_key.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/cryptography/pem_public_key.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/cryptography/pem_public_key.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/pem_public_key",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/pem_public_key.json"
  }
}