nl_tokens: Generates Apple s over - the - air configuration profile for certificate deployment based on the given PEM certificate content . Read https : // developer . apple . com / library / content / documentation / NetworkingInternet / Conceptual / iPhoneOTAConfiguration / Introduction / Introduction . html for more details on such profiles .
pl_tokens: function toMobileConfig ( certBuffer , commonName ) { const getUUID = ( ) => UUID . <mask> ( ) . hex . toUpperCase ( ) ; const contentUuid = getUUID ( ) ; return { PayloadContent : [ { PayloadCertificateFileName : ` ${ commonName } ` , PayloadContent : certBuffer , PayloadDescription : 'Adds a CA root certificate' , PayloadDisplayName : commonName , PayloadIdentifier : ` ${ contentUuid } ` , PayloadType : 'com.apple.security.root' , PayloadUUID : contentUuid , PayloadVersion : 1 } ] , PayloadDisplayName : commonName , PayloadIdentifier : ` ${ os . hostname ( ) . split ( '.' ) [ 0 ] } ${ getUUID ( ) } ` , PayloadRemovalDisallowed : false , PayloadType : 'Configuration' , PayloadUUID : getUUID ( ) , PayloadVersion : 1 } ; }