mirror of
https://github.com/micromdm/micromdm/
synced 2026-08-12 21:35:40 +08:00
Base SCEP URL directly off supplied server URL rather than a transform
This commit is contained in:
7
serve.go
7
serve.go
@@ -404,12 +404,7 @@ func (c *config) setupEnrollmentService() {
|
||||
c.err = err
|
||||
return
|
||||
}
|
||||
pub, err := url.Parse(c.ServerPublicURL)
|
||||
if err != nil {
|
||||
c.err = err
|
||||
return
|
||||
}
|
||||
SCEPRemoteURL := "https://" + strings.Split(pub.Host, ":")[0] + "/scep"
|
||||
SCEPRemoteURL := strings.TrimRight(c.ServerPublicURL, "/") + "/scep"
|
||||
|
||||
var tlsCert string
|
||||
var SCEPCertificateSubject string
|
||||
|
||||
Reference in New Issue
Block a user