One of the most common uses of PEM files is storing or exchanging public keys. But there is more than one way to store a public key in a PEM file. PKCS#1 RSAPublicKey The oldest and arguably most simple PEM-based file format for public keys is RSAPublicKey. We can recognize RSAPublicKeyfiles by their BEGIN RSA PUBLIC KEY header: -----BEGIN RSA PUBLIC KEY----- MIIBigKCAYEAq3DnhgYgLVJknvDA3clATozPtjI7yauqD4/ZuqgZn4KzzzkQ4BzJ ar4jRygpzbghlFn0Luk1mdVKzPUgYj0VkbRlHyYfcahbgOHixOOnXkKXrtZW7yWG jXPqy...