Skip to content

Commit

Permalink
Fix SCEP config keysize
Browse files Browse the repository at this point in the history
  • Loading branch information
np5 committed Jun 30, 2024
1 parent a2bf66e commit e07f7c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mdm_scep_configs.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ type MDMSCEPConfig struct {
URL string `json:"url"`
KeyUsage int `json:"key_usage"`
KeyIsExtractable bool `json:"key_is_extractable"`
KeySize int `json:"key_size"`
KeySize int `json:"keysize"`
AllowAllAppsAccess bool `json:"allow_all_apps_access"`

// Challenge info only present if not provisioned
Expand Down
6 changes: 3 additions & 3 deletions mdm_scep_configs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ var mscepListJSONResponse = `
"url": "https://www.example.com/scep/",
"key_usage": 1,
"key_is_extractable": false,
"key_size": 2048,
"keysize": 2048,
"allow_all_apps_access": false,
"challenge_type": "MICROSOFT_CA",
"microsoft_ca_challenge_kwargs" : {
Expand All @@ -43,7 +43,7 @@ var mscepGetByNameJSONResponse = `
"url": "https://www.example.com/scep/",
"key_usage": 1,
"key_is_extractable": false,
"key_size": 2048,
"keysize": 2048,
"allow_all_apps_access": false,
"challenge_type": "STATIC",
"microsoft_ca_challenge_kwargs" : null,
Expand All @@ -65,7 +65,7 @@ var mscepGetJSONResponse = `
"url": "https://www.example.com/scep/",
"key_usage": 1,
"key_is_extractable": true,
"key_size": 2048,
"keysize": 2048,
"allow_all_apps_access": true,
"created_at": "2022-07-22T01:02:03.444444",
"updated_at": "2022-07-22T01:02:03.444444"
Expand Down

0 comments on commit e07f7c6

Please sign in to comment.