I was thinking the usage would be like:

```go
key, err := readPEM("PRIVATE KEY", path, stdin)
cert, err := readPEM("CERTIFICATE", path, stdin)
```