This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -euo pipefail | |
| CERTS_DIR="$(openssl version -d | sed -E 's/OPENSSLDIR: "([^"]*)"/\1/')" | |
| exec {ALL_CERTS_FD}< <( | |
| ( | |
| [[ -r "${CERTS_DIR}/cert.pem" ]] && echo "${CERTS_DIR}/cert.pem" | |
| [[ -d "${CERTS_DIR}/certs" ]] && find -L "${CERTS_DIR}/certs" -type f -name '*.pem' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //打印文件内容 | |
| package main | |
| import ( | |
| "bufio" | |
| "bytes" | |
| "fmt" | |
| "os" | |
| "io" | |
| "path/filepath" |