Skip to content

encoding/asn1: Unmarshal rejects PrintableString containing underscore #14017

@laybay

Description

@laybay

in my program,import a customer X509 digital certificate, But ,one of this get a error, and I found in
KeyBlock,Bytes has a code 130 0x82 is not printable,so get reject, but I use C program and java all can load success! Please help me if thiis is a go mistake?
Cert, err2 := x509.ParseCertificate(KeyBlock.Bytes)
28 if err2 != nil {
29 return nil, e.New(1004, err2, "ReadX509Cert x509.ParseCertificate error;")
30 }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions