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

Fix certificate inspect #1153

Merged
merged 6 commits into from
Apr 23, 2024
Merged

Fix certificate inspect #1153

merged 6 commits into from
Apr 23, 2024

Conversation

dopey
Copy link
Contributor

@dopey dopey commented Apr 16, 2024

No description provided.

@dopey dopey requested a review from maraino April 16, 2024 04:44
@github-actions github-actions bot added the needs triage Waiting for discussion / prioritization by team label Apr 16, 2024
@dopey dopey force-pushed the max/go-dep-updates branch from e16d9e6 to 12e3dbc Compare April 16, 2024 16:32
blocks = append(blocks, block)
crts, err := pemutil.ReadCertificateBundle(crtFile)
switch {
case errors.As(err, &pemutil.ErrNoValidPEMCert):
Copy link
Collaborator

Choose a reason for hiding this comment

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

See my other PR where you can use Is.

dopey added 3 commits April 22, 2024 15:46
- Pull in updated go.step.sm/crypto with improved parsing for PEM
  formatted CSR and certificate files
  - Allows for ignoring extraneous data in PEM files
@dopey dopey force-pushed the max/go-dep-updates branch from 12e3dbc to 8d4311a Compare April 22, 2024 22:47
@dopey dopey marked this pull request as ready for review April 22, 2024 22:50
@dopey dopey requested a review from maraino April 22, 2024 22:50
maraino
maraino previously approved these changes Apr 22, 2024
Copy link
Collaborator

@maraino maraino left a comment

Choose a reason for hiding this comment

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

lgtm, but can you add the format "pem" to inspectCertificateRequest

@dopey dopey force-pushed the max/go-dep-updates branch from 6a48314 to 08f3cbe Compare April 22, 2024 23:20
@dopey dopey merged commit 576d8ad into master Apr 23, 2024
13 checks passed
@dopey dopey deleted the max/go-dep-updates branch April 23, 2024 00:03
@hslatman hslatman added this to the v0.26.1 milestone Apr 23, 2024
redrac pushed a commit to redrac/smallstep-cli that referenced this pull request May 3, 2024
* Pull in updated go.step.sm/crypto with improved parsing for PEM
  formatted CSR and certificate files
  - Allows for ignoring extraneous data in PEM files

* go mod tidy

* Removed unused derToPemBlock helper function

* Update changelog | allow certificate inspect to output CSR in PEM format

* Add unit tests for inspectCertificateRequest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Waiting for discussion / prioritization by team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants