Hi guys,

I'm using asn1parse -genconf to der encode the following asn1 structure:

URLs ::= SEQUENCE OF {
  url0  [0]   EXPLICIT GeneralName [6] OPTIONAL,
  url1  [1]   EXPLICIT GeneralName [6] OPTIONAL,
  url2  [2]   EXPLICIT GeneralName [6] OPTIONAL
}

but I have a hard time to encode the GeneralName[6] part of it.

GeneralName ::= CHOICE {
  otherName                  [0]  OtherName,
  rfc822Name                 [1]  IA5String,
  dNSName                    [2]  IA5String,
  x400Address                [3]  ORAddress,
  directoryName              [4]  Name,
  ediPartyName               [5]  EDIPartyName,
  uniformResourceIdentifier  [6]  IA5String,
  iPAddress                  [7]  OCTET STRING,
  registeredID               [8]  OBJECT IDENTIFIER
}

My genconf file looks like the following:

[ url ]
url0  = EXPLICIT:0,IA5STRING:http://www.host0.com/path0
url1  = EXPLICIT:1,IA5STRING:http://www.host1.com/path1
url2  = EXPLICIT:2,IA5STRING:http://www.host2.com/path2

[ URLs ]
URLs  = SEQUENCE:url

But this of course only gives me the first explicit tag plus IA5String for 
every url. How would I need to modify my genconf file to get the second tag 
instead of ia5string?


Thanks for your help,
Patrick Eisenacher
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to