[Servercert-wg] Ballot SC17 version 3: Alternative registration numbers for EU certificates

Tomas Gustavsson tomas.gustavsson at primekey.com
Mon Apr 8 06:42:29 MST 2019


Is it possible to have the optional element last? To keep things as easy
to understand for laymen as possible. Since it's a new field with a
sequence the order should not matter.

Regards,
Tomas

On 2019-04-08 15:26, Ryan Sleevi via Servercert-wg wrote:
> 
> 
> On Fri, Apr 5, 2019 at 3:02 PM Erwann Abalea via Servercert-wg
> <servercert-wg at cabforum.org <mailto:servercert-wg at cabforum.org>> wrote:
> 
>     EUPSD2AuthorizationNumber ::= SEQUENCE {____
> 
>       registrationSchemeIdentifier   PrintableString,____
> 
>       registrationCountry            PrintableString,____
> 
>       registrationStateorProvince    PrintableString OPTIONAL,____
> 
>       registrationReference          PrintableString____
> 
>     }
> 
> 
> The optional value should be (implicitly or explicitly) tagged, correct?
> Otherwise, it seems you won't be able to know whether you're reading a
> registrationStateorProvince or a registrationReference until you
> determine whether or not the following element is valid - that is,
> whether you have three or four elements.  Since the point of ASN.1/DER
> is to avoid these context-dependent parsers, which is inherent in the
> deliminter-separated string being proposed, I suspect the modification
> (with implicit tagging) should be
> 
> EUPSD2AuthorizationNumber ::= SEQUENCE {
>   registrationSchemeIdentifier   PrintableString,
>   registrationCountry            PrintableString,
>   registrationStateorProvince    [0] IMPLICIT PrintableString OPTIONAL,
>   registrationReference          PrintableString
> }
> 
> _______________________________________________
> Servercert-wg mailing list
> Servercert-wg at cabforum.org
> http://cabforum.org/mailman/listinfo/servercert-wg
> 


More information about the Servercert-wg mailing list