[go-nuts] How to parse IDP extension information in a CRL using Go

2025-04-04 Thread 'Qianxin Cheng' via golang-nuts
Developer, I wrote some code in Go to parse the IDP extension information in a CRL, but I'm encountering an error while parsing the DistributionPoint. I've tried multiple times, but I can't get it to work. Can you help me figure out what is wrong with this code? package main import ( "crypto/x5

[go-nuts] How to parse IDP extension information in a CRL using Go

2025-04-02 Thread 'Qianxin Cheng' via golang-nuts
开发人员,我在 Go 中编写了一段代码来解析 CRL 中的 IDP 扩展信息,但在解析 DistributionPoint 时遇到了错误。我已经尝试了几次,但一直无法让它工作。您能帮我确定这段代码有什么问题吗? package main import ( “crypto/x509”, “crypto/x509/pkix”, “encoding/asn1”, “flag”, “fmt” , “os” ) type IssuingDistributionPoint struct { DistributionPoint asn1.RawValue 'asn1:“optional,tag:0,