Thankyou openssl group for your overwhelming, ZERO help support.

i found out libcrypto.a is build everytime you compile the openssl.

but i am still having problems.

i am trying to add my custom extension under the standard extension stack.
(my company have acquired OIDs)
steps:
 - add entries (shortname,longname,nid,oid)  in  ( objects.h,obj_mac.num)
 - for nid, i used the last available nid (>750)
 - under [crypto/x509v3] , make a file v3_custom.c and add the code to
get and set values.
 - add the corresponding typedef in x509v3.h
 - add the entry in ext_dat.h as (extern, X509V3_EXT_METHOD)
   ( here i had to add the v3_custom.o in the libcrypto.a using "ar" utility )
- re-build openssl

-------------------------------------------------------------------------------------------------
- make custom conf file (myopenssl.cnf) and add custom extension in
the section [v3_ca]

-----------
customExtension = "hello"
-----------

- now when i make a self-sign certificate

---------------
openssl req -new -x509 -key cakey.pem -out cert.pem -config myopenssl.cnf
---------------

it gives me the following error :
---------------
error Loading extension section v3_ca
11715:error:2207C081:X509 V3 routines:DO_EXT_CONF:unknown
extension:v3_conf.c:128:
11715:error:2206B080:X509 V3 routines:X509V3_EXT_conf:error in
extension:v3_conf.c:92:name=customExtension ,value=hello
---------------
but wen i write the extension value in DER form , as:

------------
myopenssl.cnf
[v3_ca]

customExtension = DER:02:03

------------
and now i run the self-sign cert command , it compiles succesfully and
i can see my extension in the certificate.

what else shud i do, to make my custom extension a purely standard extension ??

ne help??


On 4/26/06, Saurabh Arora <[EMAIL PROTECTED]> wrote:
>
> hello
>
> how can we re-build libcrypto.a ??
>
> i found a file in [crypto] dir - "crypto-lib.com" which is used to create 
> LIBCYPTO.OLB (may be for windows version), similarly is there a way to 
> re-build  libcrypto.a ??
>
> ok heres my purpose to re-build it :
> i am trying to add my custom extension under the standard extension stack.( 
> my company have valid OIDs).
> steps:
> - add entries (shortname,longname,nid,oid)  in  ( objects.h,obj_mac.num)
> - for nid, i used the last available nid (>750)
> - under [crypto/x509v3] , make a file v3_custom.c and add the code to get and 
> set values.
> - add the corresponding typedef in x509v3.h
> - add the entry in ext_dat.h as (extern, X509V3_EXT_METHOD) ----> here i get 
> the error when i try to compile as it is not able to recognize v3_custom 
> parameter.
> for this i found out that all the parameters in ext_dat.h is stored in 
> libcrypto.a !!
> for this now i want to re-build libcypto.a with my custom function.
>
> aniticipating help ....
>
>
> tanish
>
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [email protected]
Automated List Manager                           [EMAIL PROTECTED]
  • Re: libcrypto.a Saurabh Arora

Reply via email to