Documentation ¶
Overview ¶
Package mdmcertutil contains helpers for requesting MDM Push Certifificates. The process is described by Apple at https://developer.apple.com/library/content/documentation/Miscellaneous/Reference/MobileDeviceManagementProtocolRef/7-MDMVendorCSRSigningOverview/MDMVendorCSRSigningOverview.html#//apple_ref/doc/uid/TP40017387-CH6-SW4
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CSRConfig ¶
type CSRConfig struct {
CommonName, Country, Email string
PrivateKeyPassword []byte
PrivateKeyPath, CSRPath string
}
CSRConfig defines arguments required to create a new CSR.
type PushCertificateRequest ¶
type PushCertificateRequest struct { PushCertRequestCSR string PushCertCertificateChain string PushCertSignature string }
The PushCertificateRequest structure required by identity.apple.com to create an MDM Push certificate.
func CreatePushCertificateRequest ¶
func CreatePushCertificateRequest(mdmCertPath, pushCSRPath, pKeyPath string, pKeyPass []byte) (*PushCertificateRequest, error)
CreatePushCertificateRequest creates a request structure required by identity.apple.com. It requires a "MDM CSR" certificate (the vendor certificate), a push CSR (the customer specific CSR), and the vendor private key.
func (*PushCertificateRequest) Encode ¶
func (p *PushCertificateRequest) Encode() ([]byte, error)
Encode marshals a PushCertificateRequest to an XML Plist file and returns a base64 encoded byte representation of the request.