getCert 从证书数据中提取证书
This commit is contained in:
parent
a241f05370
commit
48907c4653
|
@ -23,6 +23,7 @@ func hex2dec(hex string) string {
|
|||
return fmt.Sprintf("%d", dec)
|
||||
}
|
||||
|
||||
// getCert 从证书数据中提取证书
|
||||
func getCert(certData []byte) (*x509.Certificate, error) {
|
||||
block, _ := pem.Decode(certData)
|
||||
if block == nil {
|
||||
|
|
Loading…
Reference in New Issue