Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guard aginst tls=false and supplying cert&key #414

Merged
merged 2 commits into from May 12, 2018

Conversation

jessepeterson
Copy link
Member

#268 talks about a situation where it's not clear that supplying a certificate and key will magically turn on -tls=true. Thus, forbid starting micromdm using those options together).

Copy link
Member

@groob groob left a comment

Choose a reason for hiding this comment

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

just a small nit

@@ -121,6 +121,9 @@ func serve(args []string) error {
if !strings.HasPrefix(*flServerURL, "https://") {
return errors.New("-server-url must begin with https://")
}
if *flTLS == false && (*flTLSCert != "" || *flTLSKey != "") {
Copy link
Member

Choose a reason for hiding this comment

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

if !*flTLS

@jessepeterson jessepeterson merged commit 6cda0a2 into micromdm:master May 12, 2018
@jessepeterson jessepeterson deleted the check-param-tls-false branch May 12, 2018 21:22
Lepidopteron pushed a commit to Lepidopteron/micromdm that referenced this pull request Feb 11, 2021
Lepidopteron pushed a commit to Lepidopteron/micromdm that referenced this pull request Feb 11, 2021
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.

None yet

2 participants