Standard library / crypto/x509/pkix
crypto/x509/pkix.RDNSequence
Ordered sequence of relative distinguished name sets. Use raw subject DER for exact encoding. Expected stdout: 'CN=Demo\n'.
Formal Syntax & Structure
go syntaxgo
type RDNSequence []RelativeDistinguishedNameSETWorking Example
Example Snippetgo
package main
import ( "crypto/x509/pkix" "fmt")
func main() { n := pkix.Name{CommonName: "Demo"}; r := n.ToRDNSequence(); fmt.Println(r.String()) }
func must[T any](v T, e error) T { if e != nil { panic(e) } return v}func check(e error) { if e != nil { panic(e) }}