github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/crypto/x509/parser.go (about) 1 // Copyright 2021 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package x509 6 7 // ParseCertificateは与えられたASN.1 DERデータから単一の証明書を解析します。 8 func ParseCertificate(der []byte) (*Certificate, error) 9 10 // ParseCertificates関数は、与えられたASN.1 DERデータから1つ以上の証明書を解析します。 11 // 証明書は、間にパディングがない形式で連結されている必要があります。 12 func ParseCertificates(der []byte) ([]*Certificate, error) 13 14 // ParseRevocationListは、与えられたASN.1 DERデータからX509 v2 [Certificate] 失効リストをパースします。 15 func ParseRevocationList(der []byte) (*RevocationList, error)