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 Medziński wrote:
> Is it possible to set a SAN otherName in x509.CertificateRequest
> <https://golang.org/pkg/crypto/x509/#CertificateRequest> structure, so
> it will be present in the DER encoded output
> of x509.CreateCertificateRequest
> <https://golang.org/pkg/crypto/x509/#CreateCertificateRequest>?
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to golang-nuts+unsubscr...@googlegroups.com
> <mailto:golang-nuts+unsubscr...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to