Re: [go-nuts] Set a SAN otherName using `x509.CertificateRequest`

2017-04-25 Thread Adam Medziński
I figured this out. Now I have a problem with correctly marshalling this field. Here is a link to the example code: Go Playground It creates certificate request without error but requested extensions are total mess: Certificate Request: Data:

Re: [go-nuts] Set a SAN otherName using `x509.CertificateRequest`

2017-04-24 Thread Janne Snabb
Yes, but not as easily as using DNSName. You need to add the extension "manually". Put it in ExtraExtensions of the template. See /usr/local/go/src/crypto/x509/x509.go functions buildExtensions and marshalSANs to see how to put it there. Janne Snabb sn...@epipe.com On 2017-04-24 18:28, Adam

[go-nuts] Set a SAN otherName using `x509.CertificateRequest`

2017-04-24 Thread Adam Medziński
Is it possible to set a SAN otherName in x509.CertificateRequest structure, so it will be present in the DER encoded output of x509.CreateCertificateRequest ? -- You received