JSON containing certificates are not properly serialized
On /api/admin/devices:
We receive a JSON response containing a certificate that isn't properly serialized. It needs to either:
- Have all line breaks replaced with '\n'
- Have the certificate displayed on a singular line with no breaks in the JSON.
The associated AJAX call will result in a failure otherwise.