Skip to content

fix base64 encoding mismatch for GET PKIOperation requests#250

Merged
jessepeterson merged 1 commit intomicromdm:mainfrom
getvictor:main
Jan 22, 2026
Merged

fix base64 encoding mismatch for GET PKIOperation requests#250
jessepeterson merged 1 commit intomicromdm:mainfrom
getvictor:main

Conversation

@getvictor
Copy link
Contributor

EncodeSCEPRequest was using base64.URLEncoding (with - and _) but SCEP servers expect base64.StdEncoding (with + and /). This caused "illegal base64 data" errors when the client sent GET requests to servers that don't support POST.

Fixes #249

EncodeSCEPRequest was using base64.URLEncoding (with - and _) but SCEP
servers expect base64.StdEncoding (with + and /). This caused "illegal
base64 data" errors when the client sent GET requests to servers that
don't support POST.

Fixes micromdm#249
Copy link
Member

@jessepeterson jessepeterson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, nice catch, and thanks!

@jessepeterson jessepeterson merged commit a8623d6 into micromdm:main Jan 22, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EncodeSCEPRequest uses URLEncoding but server expects StdEncoding for GET requests

2 participants