On Wed, Jun 30, 2010, Eisenacher, Patrick wrote: > Hi Martin, > > > -----Original Message----- From: Martin Kaiser > > > > > > Now I understand that the oid definitions in the config file are not just > > used internally (for defining extensions etc) but they're picked up by the > > command line tools. > > > > Is it correct that only req and ca use the oid definitions and others like > > x509 don't? > > I'd expect them to be picked up by every commandline tool that you can feed > in a config file. > > Since x509 has no option for feeding in the config file, it doesn't know > about the definitions you made there. As such, it can only give you the > numerical representation, as you have already witnessed. > > A wild guess: Have you checked whether the -extfile option gets evaluated > for displaying purposes as well? >
Note that there are two separate ways to add OIDs. The recommended way is via the ASN1 OBJECT configuration module, documentation is here: http://www.openssl.org/docs/apps/config.html# Any application supporting configuration modules will then see the new defintions (include *all* the openssl utilities). Even if the openssl utility doesn't have an option to specify a configuration file you can either modify the default configuration file or set the OPENSSL_CONF environment variable to specify an alternative. The alternative older "oid_section" form is retained for compatibility but is only supported by "ca" and "req" and no other applications (unless they explicitly include code to support it). Steve. -- Dr Stephen N. Henson. OpenSSL project core developer. Commercial tech support now available see: http://www.openssl.org ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [email protected] Automated List Manager [email protected]
