Hi Mag,

> -----Original Message-----
> From: Mag
>
> I'm interested in using custom OIDs for private application purposes.
> I've found the documentation to be deficient.
>
> For instance, in openssl.cnf it gives an example line of
>  [ new_oids ]
>  #testoid1=1.2.3.4
>
> When I uncomment that line I can't even tell what the effect is; e.g.,
> "openssl req ..." doesn't then prompt me for a testoid1 field. Just
> what is the effect of this supposed to be?

That line only defines the label "testoid1" and assigns the value "1.2.3.4".

To use a private oid, you have to define its asn1 structure first. Afterwards 
you can include it in your request or certificate by referencing it in the 
appropriate config file section. If you defined a label, you can reference it 
by that name, otherwise you just use the dotted notation.

> Amongst my first questions is, when you add OIDs in this manner are
> you able to use the command line tool to supply values or does this
> require programmatic construction of certificates? (There's obviously
> the further question if yes of how the data is typed.)

Yes, of course those defines are picked up by the commandline tools.

For an example, check last month's archive for the thread "Private Key Usage 
Period".

HTH,
Patrick Eisenacher
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [email protected]
Automated List Manager                           [email protected]

Reply via email to