DHowett / go-plist

A pure Go Apple Property List transcoder
Other
416 stars 97 forks source link

Set line length of base64 data #48

Open timaebi opened 5 years ago

timaebi commented 5 years ago

I want to write a mobileconfig configuration profile using this library. In particular I want to add a few Certificate Payloads to a configuration profile. The specifications (page 19) for PayloadContent says that the certificate should be base64 encoded with a line length of 52. Unfortunately if I use a byte slice for the certificate data, the library just outputs everything on a single line.

Would you see a way how we could make this possible?