2.2.9.1.6 PUBLICKEY

A PUBLICKEY element contains an RSA public key. A PUBLICKEY element MUST use the following template.

 <PUBLICKEY>
    <ALGORITHM>RSA</ALGORITHM> 
    <PARAMETER name="public-exponent">
       <VALUE encoding="integer32">
          [[- exponent -]]
       </VALUE> 
    </PARAMETER>
    <PARAMETER name="modulus">
       <VALUE encoding="base64" size="[[- key length -]]">
          [[- modulus -]]
       </VALUE> 
    </PARAMETER>
 </PUBLICKEY>
  

[[- exponent -]]: The exponent portion of the public key. This MUST be set to 65537.

[[- key length -]]: The length of the public key in bits, represented as a string. This MUST be a valid key length for the RSA algorithm.

[[- modulus -]]: The modulus portion of the public key. This MUST be a valid modulus for the RSA algorithm.