Re: DC= fields (subject NID) in 9.7?

2001-12-13 Thread Richard Levitte - VMS Whacker
From: Bear Giles [EMAIL PROTECTED] bear What I'm ultimately trying to support is database functions to bear convert between tables and X.509 subjects. I expect this will bear be a set of functions like: bear bear x509name_set_field_string (x509name *name, text *field, text *value, bear

Re: DC= fields (subject NID) in 9.7?

2001-12-12 Thread Bear Giles
bear NID_domainComponent. So I'm still not sure that these tables bear can be used to validate the input to these routines. Do I get it right, you're after having the string length limits and possibly the allowed string types for DC and more in that table? What I'm ultimately trying to

Re: DC= fields (subject NID) in 9.7?

2001-12-12 Thread Jean-Marc Desperrier
Bear Giles wrote: As for domainComponent in particular, the RFC clearly limits it to 64 octets Not _the_ RFC. Which RFC ? Not 2459, there's not a word about domainComponent. Not 1274, which first defined domainComponent, it did not fit a size limit. So that must be some LDAP related RFC,

Re: DC= fields (subject NID) in 9.7?

2001-12-11 Thread Bear Giles
Oops. The information *is* in obj_mac.h, even if it's unused. But again, shouldn't this be in crypto/asn1/a_strnid.c (and elsewhere) so it's recognized by default? __ OpenSSL Project

Re: DC= fields (subject NID) in 9.7?

2001-12-11 Thread Oscar Jacobsson
I've used DC-based naming (RFC 2377?) for a while now, and can't really remember running in to any particular problems. I generate the certificates using the OpenSSL command line apps using a configuration like this: [ OJ_req_distinguished_name ] 0.domainComponent = TLD component

Re: DC= fields (subject NID) in 9.7?

2001-12-11 Thread Bear Giles
(More for documentation than anything else right now...) I've verified that the *applications* (at least 'req') do understand these fields. For an DNS-style LDAP-ish DN the openssl.cnf file should have something like this: [ policy_match ] commonName = supplied organizationalUnitName =

Re: DC= fields (subject NID) in 9.7?

2001-12-11 Thread Richard Levitte - VMS Whacker
From: Bear Giles [EMAIL PROTECTED] bear NID_domainComponent. So I'm still not sure that these tables bear can be used to validate the input to these routines. Do I get it right, you're after having the string length limits and possibly the allowed string types for DC and more in that table?

Re: DC= fields (subject NID) in 9.7?

2001-12-11 Thread Dr S N Henson
Oscar Jacobsson wrote: Having them in obj_mac.h should mean they are recognized by default, shouldn't it? I'm not sure exactly what a_strnid.c does, but it looks like a collection of convenience functions. I'm sure DC could be added, as long as some kind soul could point out what its