What encoding is used on the OVPN certificates and keys in config.xml?



  • I am writing a script to help me automate the writing of new configurations as I roll out pfSense, and I'm trying to write out some OpenVPN settings. I quickly realized that the certificates and keys are encoded. I thought it might have been base64 but that isn't looking right. The config file has them as a single line and my base64 encoded stuff is coming out as multiple lines. Can anyone tell me what the encoding is? Thanks.



  • Never mind, I figured it out. It is base64 encoded, just without line breaks. I just removed all the line breaks from my encoded string.


Locked