Post XML request with PEM Key -


I am using burgssite to test SSH-public key credentials through an XML post request. Basically I need to send the PEM file text as part of an XML element, such as:

    

How do I format the contents of the PEM file as a string to present it as raw XML?

If you need to preserve white space, you can

  & lt; PEMKey xml: space = "preserve" xmlns: xml = "can use http: //www.w3.org/XML/1998/namespace" & gt; ----- RSA Private Key ----- ... ----- END RSA Private Key ----- & lt; / PEMKey & gt;   

Or re-encode the entire text into Base-64.

Comments