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

Name ID tool #7469

Open
mcpherrinm opened this issue May 2, 2024 · 4 comments
Open

Name ID tool #7469

mcpherrinm opened this issue May 2, 2024 · 4 comments

Comments

@mcpherrinm
Copy link
Contributor

We need to calculate boulder's "NameID"s occasionally. Having a tool inside boulder source tree would be helpful (doesn't have to be built; something I can go run is fine)

package main

import "fmt"
import "os"
import "github.com/letsencrypt/boulder/issuance"

func main() {
	issuer, _ := issuance.LoadCertificate(os.Args[1])
	fmt.Println(issuer.NameID())
}
@aarongable
Copy link
Contributor

Would it be equivalently helpful for it to be in the sre-tools tree?

@mcpherrinm
Copy link
Contributor Author

I don't really care where it lives, but since it's essentially just exposing a pair of Boulder functions, it seems to make the most sense to drop it here somewhere.

@aarongable
Copy link
Contributor

Yeah, makes sense. Boulder just doesn't really have a "random scripts and tools" directory right now, at least not for go code.

@mcpherrinm
Copy link
Contributor Author

A similar example might be the block-a-key or list-features tool currently under test/

https://github.com/letsencrypt/boulder/blob/main/test/list-features/list-features.go
https://github.com/letsencrypt/boulder/blob/main/test/block-a-key/main.go

Perhaps they could all be relocated to the current top-level tools/, which doesn't have Go in it today, or a cmd/tools/ directory. I think I'd expect to see this under cmd/ somewhere, personally.

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

No branches or pull requests

2 participants