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

Add DNSName flag to scepclient #202

Merged
merged 9 commits into from
Aug 13, 2022
Merged

Add DNSName flag to scepclient #202

merged 9 commits into from
Aug 13, 2022

Conversation

macmule
Copy link
Contributor

@macmule macmule commented Aug 10, 2022

Whilst DNSNames have been referenced in the cert template (https://github.com/micromdm/scep/blob/main/depot/signer.go#L81-L97), neither the scepclient did not have the option to add these to the CSR.

This PR resolves that by adding the option via a dnsname flag.

This could be improved upon though by adding multiple, but a little beyond my 1 days worth of Go experience.

Whilst DNSNames have been referenced in the cert template (https://github.com/micromdm/scep/blob/main/depot/signer.go#L81-L97), neither the scepclient did not have the option to add these to the CSR.

This PR resolves that by adding the option via a dnsname flag.

This could be improved upon though by adding multiple, but a little beyond my 1 days worth of Go experience.
cmd/scepclient/csr.go Outdated Show resolved Hide resolved
cmd/scepclient/scepclient.go Outdated Show resolved Hide resolved
cmd/scepclient/scepclient.go Outdated Show resolved Hide resolved
macmule and others added 3 commits August 10, 2022 16:45
@macmule macmule requested a review from jessepeterson August 10, 2022 15:46
@macmule
Copy link
Contributor Author

macmule commented Aug 10, 2022

Sorry, made another commit which caught the changes after the mixedCaps miss

@macmule
Copy link
Contributor Author

macmule commented Aug 13, 2022

ran via gofmt -s each file flagged with gofmt -s -l a few times.. and gofmt -w.. now gofmt -s -l has no output.. so fingers crossed this has worked.

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; Thanks!

@jessepeterson jessepeterson merged commit 699e8df into micromdm:main Aug 13, 2022
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.

2 participants