FAQ
Sorry, I have been thinking of doing it this way but expected the ASN.1 raw
value structure to be marshalled instead of used as raw value.

Should have tested this myself directly, but it works now.

Thanks!

On Thursday, 20 August 2015 15:43:37 UTC+2, Matt Harden wrote:

You could use an asn1.RawValue{Tag: 22, Bytes: []byte(mystring)}.

On Thu, Aug 20, 2015, 07:38 Paul van Brouwershaven <
pa...@vanbrouwershaven.com <javascript:>> wrote:
I'm trying to add a domain component (oid 0.9.2342.19200300.100.1.25) via
the pkix.Name.ExtraNames AttributeTypeAndValue and this works fine except
that the string of a domain component must always be an ia5 string
according to rfc2247.

My first idea was to create a new sting type and instruct it via the
options to ia5 ASN.1 encoding, but that would only work if the value is a
struct.

type ia5string string `asn1:"ia5"`


result in a "syntax error: unexpected string literal, expecting semicolon
or newline"

Any idea how to change the sting encoding in a AttributeTypeAndValue?

Thanks,

Paul

--
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...@googlegroups.com <javascript:>.
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 4 of 4 | next ›
Discussion Overview
groupgolang-nuts @
categoriesgo
postedAug 20, '15 at 12:38p
activeAug 20, '15 at 2:17p
posts4
users2
websitegolang.org

People

Translate

site design / logo © 2021 Grokbase