ReadStdin reads from stdin if the file is "-"
(filename string)
| 150 | |
| 151 | // ReadStdin reads from stdin if the file is "-" |
| 152 | func ReadStdin(filename string) ([]byte, error) { |
| 153 | if filename == "-" { |
| 154 | return io.ReadAll(os.Stdin) |
| 155 | } |
| 156 | return os.ReadFile(filename) |
| 157 | } |
| 158 | |
| 159 | // PrintCert outputs a cert, key and csr to stdout |
| 160 | func PrintCert(key, csrBytes, cert []byte) { |
no outgoing calls
searching dependent graphs…