From 2f2616e274052529d50fb7e2d655a629a205c8d1 Mon Sep 17 00:00:00 2001 From: Scott Knight <4534275+knightsc@users.noreply.github.com> Date: Thu, 23 Aug 2018 10:20:16 -0400 Subject: [PATCH] Correct SCEP profile payload (#492) Both KeyType and KeyUsage were being defined with spaces in the name. According to the spec this is incorrect. The clients were most likely just ignoring these fields and everything still worked but it makes sense to correct the profile. --- mdm/enroll/profile.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mdm/enroll/profile.go b/mdm/enroll/profile.go index f6d39bf6..757201e6 100644 --- a/mdm/enroll/profile.go +++ b/mdm/enroll/profile.go @@ -59,8 +59,8 @@ type SCEPPayloadContent struct { CAFingerprint []byte `plist:"CAFingerprint,omitempty"` // NSData Challenge string `plist:"Challenge,omitempty"` Keysize int - KeyType string `plist:"Key Type"` - KeyUsage int `plist:"Key Usage"` + KeyType string `plist:"KeyType"` + KeyUsage int `plist:"KeyUsage"` Name string Subject [][][]string `plist:"Subject,omitempty"` URL string