Skip to content

Conversation

@oncilla
Copy link
Contributor

@oncilla oncilla commented Jul 9, 2025

The scion-pki CLI commands now support reading from stdin when the file path is set to -, where appropriate. This allows the user to pipe data directly into the command without the need to create temporary files.

Furthermore, the scion-pki trc extract certificates command has two additional filtering options: --type and --subject.isd-as, allowing the user to filter the extracted certificates.

@oncilla oncilla requested review from katyatitkova and romshark July 9, 2025 11:48

// ReadFileOrStdin reads the content of a file or stdin if the path is "-".
// It returns the content as a byte slice.
func ReadFileOrStdin(path string) ([]byte, error) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Open for suggestions if there is a more suitable place to put this.

The `scion-pki` CLI commands now support reading from stdin
when the file path is set to `-`, where appropriate. This allows
the user to pipe data directly into the command without
the need to create temporary files.

Furthermore, the `scion-pki trc extract certificates` command has two
additional filtering options: `--type` and `--subject.isd-as`, allowing
the user to filter the extracted certificates.
@oncilla oncilla force-pushed the scion-pki-extract branch from c732967 to 4c0fc53 Compare July 21, 2025 12:16
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