RE: Need help for X509

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

RE: Need help for X509

Namrata Patil

I am getting the error below now while recompiling for x509 .c files.

 

mkreq.c:39: undefined reference to `ENGINE_cleanup'

mkreq.c:41: undefined reference to `CRYPTO_cleanup_all_ex_data'

 

here is the ref to above calls in the mkreq.c

 

#ifndef OPENSSL_NO_ENGINE

#include <openssl/engine.h>

#endif

 

int mkreq(X509_REQ **x509p, EVP_PKEY **pkeyp, int bits, int serial, int days);

int add_ext(STACK_OF(X509_REQUEST) *sk, int nid, char *value);

 

int main(int argc, char **argv)

        {

 

#ifndef OPENSSL_NO_ENGINE

        ENGINE_cleanup();

#endif

        CRYPTO_cleanup_all_ex_data();

}

 

So what I should do for this?

 


From: [hidden email] [mailto:[hidden email]] On Behalf Of Ambarish Mitra
Sent: Wednesday, March 22, 2006 6:36 PM
To: [hidden email]
Subject: RE: Need help for X509

 

There is no need to create a new makefile at all. If your build was successful, you will have the openssl executable(s) present already. You can use the command line for testing:

 

openssl ca <CA management>

openssl crl <CRL management>

openssl pkcs12 <PKCS management> etc

 

 

-----Original Message-----
From: [hidden email] [mailto:[hidden email]]On Behalf Of Namrata Patil
Sent: Wednesday, March 22, 2006 6:17 PM
To: [hidden email]
Subject: RE: Need help for X509

So this mean it is just enough to create new make file to compile C files for mkreq and mkca and directly I can use X509 utility?

 


From: [hidden email] [mailto:[hidden email]] On Behalf Of Ambarish Mitra
Sent: Wednesday, March 22, 2006 6:06 PM
To: [hidden email]
Subject: RE: Need help for X509

 

x509 ca - all CA management utilities

 

x509 crl - all CRL management utilities.

 

etc.

 

The documentation is there in the site. If you have any specific questions, do let us know and we shall try to help you.

 

 

"How to create exe for X509?" - There is no need to 'create'. Once you successfully build, it will be created.

 

-----Original Message-----
From: [hidden email] [mailto:[hidden email]]On Behalf Of Namrata Patil
Sent: Wednesday, March 22, 2006 5:55 PM
To: [hidden email]
Subject: Need help for X509

Hi,

 

OPENSSL
-------
demo/x509

 

 

I noticed that Makefile is not there for X509 in demo folder.

So tried to build in X509 by creating new makefile and was able to get .o and exe for two C files present in X509 directory.

 

I have question about X509 usage. How to test this command for OpenSSL?

I found information about this in OpenSSL document online which I am briefing here.

 

x509 - Certificate display and signing utility.

The x509 command is a multi purpose certificate utility. It can be used to display certificate information, convert certificates to various forms, sign certificate requests like a ``mini CA'' or edit certificate trust settings.

Since there are a large number of options they will split up into various sections.

So I just don’t know how to test this utility for OpenSSL.

How to create exe for X509?

Please suggest.

 

-Namrata.

 

 

 

 

 

 

Reply | Threaded
Open this post in threaded view
|

RE: Need help for X509

Girish Venkatachalam
the ENGINE interface is the hardware interface of
OpenSSL. If you are not using any cypto hardware you
can safely
#define OPENSSL_NO_ENGINE

CRYPTO_cleanup_all_ex_data() is defined in ex_data.c
file. Make sure your compiler picks up the definition
from there...

--- Namrata Patil <[hidden email]> wrote:

> I am getting the error below now while recompiling
> for x509 .c files.
>
>  
>
> mkreq.c:39: undefined reference to `ENGINE_cleanup'
>
> mkreq.c:41: undefined reference to
> `CRYPTO_cleanup_all_ex_data'
>
>  
>
> here is the ref to above calls in the mkreq.c
>
>  
>
> #ifndef OPENSSL_NO_ENGINE
>
> #include <openssl/engine.h>
>
> #endif
>
>  
>
> int mkreq(X509_REQ **x509p, EVP_PKEY **pkeyp, int
> bits, int serial, int
> days);
>
> int add_ext(STACK_OF(X509_REQUEST) *sk, int nid,
> char *value);
>
>  
>
> int main(int argc, char **argv)
>
>         {
>
>  
>
> #ifndef OPENSSL_NO_ENGINE
>
>         ENGINE_cleanup();
>
> #endif
>
>         CRYPTO_cleanup_all_ex_data();
>
> }
>
>  
>
> So what I should do for this?
>
>  
>
> ________________________________
>
> From: [hidden email]
> [mailto:[hidden email]] On Behalf
> Of Ambarish Mitra
> Sent: Wednesday, March 22, 2006 6:36 PM
> To: [hidden email]
> Subject: RE: Need help for X509
>
>  
>
> There is no need to create a new makefile at all. If
> your build was
> successful, you will have the openssl executable(s)
> present already. You
> can use the command line for testing:
>
>  
>
> openssl ca <CA management>
>
> openssl crl <CRL management>
>
> openssl pkcs12 <PKCS management> etc
>
>  
>
>
>
> -----Original Message-----
> From: [hidden email]
> [mailto:[hidden email]]On Behalf Of
> Namrata Patil
> Sent: Wednesday, March 22, 2006 6:17 PM
> To: [hidden email]
> Subject: RE: Need help for X509
>
> So this mean it is just enough to create new make
> file to
> compile C files for mkreq and mkca and directly I
> can use X509 utility?
>
>
>
>
> ________________________________
>
>
> From: [hidden email]
> [mailto:[hidden email]] On Behalf
> Of Ambarish Mitra
> Sent: Wednesday, March 22, 2006 6:06 PM
> To: [hidden email]
> Subject: RE: Need help for X509
>
>
>
> x509 ca - all CA management utilities
>
>
>
> x509 crl - all CRL management utilities.
>
>
>
> etc.
>
>
>
> The documentation is there in the site. If you have
> any specific
> questions, do let us know and we shall try to help
> you.
>
>
>
>
>
> "How to create exe for X509?" - There is no need to
> 'create'.
> Once you successfully build, it will be created.
>
>
>
> -----Original Message-----
> From: [hidden email]
> [mailto:[hidden email]]On Behalf Of
> Namrata Patil
> Sent: Wednesday, March 22, 2006 5:55 PM
> To: [hidden email]
> Subject: Need help for X509
>
> Hi,
>
>
>
> OPENSSL
> -------
> demo/x509
>
>
>
>
>
> I noticed that Makefile is not there for X509 in
> demo
> folder.
>
> So tried to build in X509 by creating new makefile
> and
> was able to get .o and exe for two C files present
> in X509 directory.
>
>
>
> I have question about X509 usage. How to test this
> command for OpenSSL?
>
> I found information about this in OpenSSL document
> online which I am briefing here.
>
>
>
> x509 - Certificate display and signing utility.
>
> The x509 command is a multi purpose certificate
> utility.
> It can be used to display certificate information,
> convert certificates
> to various forms, sign certificate requests like a
> ``mini CA'' or edit
> certificate trust settings.
>
> Since there are a large number of options they
> will
> split up into various sections.
>
> So I just don't know how to test this utility for
> OpenSSL.
>
> How to create exe for X509?
>
> Please suggest.
>
>
>
>
=== message truncated ===


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com 
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [hidden email]
Automated List Manager                           [hidden email]
Reply | Threaded
Open this post in threaded view
|

RE: Need help for X509

Namrata Patil
In reply to this post by Namrata Patil
RE: Need help for X509

I used #define OPENSSL_NO_ENGINE and got the message

cc -g -I../../include -Wall   -c -o mkreq.o mkreq.c

In file included from mkreq.c:13:

../../include/openssl/engine.h:70:2: #error ENGINE is disabled.

gmake: *** [mkreq.o] Error 1

in the engine.h file its given like

#ifdef OPENSSL_NO_ENGINE

#error ENGINE is disabled.

#endif

So any help available on this?


-----Original Message-----
From: [hidden email] [[hidden email]] On Behalf Of Girish Venkatachalam
Sent: Wednesday, April 19, 2006 5:58 PM
To: [hidden email]
Subject: RE: Need help for X509

the ENGINE interface is the hardware interface of

OpenSSL. If you are not using any cypto hardware you

can safely

#define OPENSSL_NO_ENGINE

CRYPTO_cleanup_all_ex_data() is defined in ex_data.c

file. Make sure your compiler picks up the definition

from there...

--- Namrata Patil <[hidden email]> wrote:

> I am getting the error below now while recompiling

> for x509 .c files.

>

>

> mkreq.c:39: undefined reference to `ENGINE_cleanup'

>

> mkreq.c:41: undefined reference to

> `CRYPTO_cleanup_all_ex_data'

>

>

> here is the ref to above calls in the mkreq.c

>

>

> #ifndef OPENSSL_NO_ENGINE

>

> #include <openssl/engine.h>

>

> #endif

>

>

> int mkreq(X509_REQ **x509p, EVP_PKEY **pkeyp, int

> bits, int serial, int

> days);

>

> int add_ext(STACK_OF(X509_REQUEST) *sk, int nid,

> char *value);

>

>

> int main(int argc, char **argv)

>

>         {

>

>

> #ifndef OPENSSL_NO_ENGINE

>

>         ENGINE_cleanup();

>

> #endif

>

>         CRYPTO_cleanup_all_ex_data();

>

> }

>

>

> So what I should do for this?

>

>

> ________________________________

>

> From: [hidden email]

> [[hidden email]] On Behalf

> Of Ambarish Mitra

> Sent: Wednesday, March 22, 2006 6:36 PM

> To: [hidden email]

> Subject: RE: Need help for X509

>

>

> There is no need to create a new makefile at all. If

> your build was

> successful, you will have the openssl executable(s)

> present already. You

> can use the command line for testing:

>

>

> openssl ca <CA management>

>

> openssl crl <CRL management>

>

> openssl pkcs12 <PKCS management> etc

>

>

>       

>

>       -----Original Message-----

>       From: [hidden email]

> [[hidden email]]On Behalf Of

> Namrata Patil

>       Sent: Wednesday, March 22, 2006 6:17 PM

>       To: [hidden email]

>       Subject: RE: Need help for X509

>

>       So this mean it is just enough to create new make

> file to

> compile C files for mkreq and mkca and directly I

> can use X509 utility?

>

>       

>

>      

> ________________________________

>

>

>       From: [hidden email]

> [[hidden email]] On Behalf

> Of Ambarish Mitra

>       Sent: Wednesday, March 22, 2006 6:06 PM

>       To: [hidden email]

>       Subject: RE: Need help for X509

>

>       

>

>       x509 ca - all CA management utilities

>

>       

>

>       x509 crl - all CRL management utilities.

>

>       

>

>       etc.

>

>       

>

>       The documentation is there in the site. If you have

> any specific

> questions, do let us know and we shall try to help

> you.

>

>       

>

>       

>

>       "How to create exe for X509?" - There is no need to

> 'create'.

> Once you successfully build, it will be created.

>

>       

>

>               -----Original Message-----

>               From: [hidden email]

> [[hidden email]]On Behalf Of

> Namrata Patil

>               Sent: Wednesday, March 22, 2006 5:55 PM

>               To: [hidden email]

>               Subject: Need help for X509

>

>               Hi,

>

>               

>

>               OPENSSL

>               -------

>               demo/x509

>

>               

>

>               

>

>               I noticed that Makefile is not there for X509 in

> demo

> folder.

>

>               So tried to build in X509 by creating new makefile

> and

> was able to get .o and exe for two C files present

> in X509 directory.

>

>               

>

>               I have question about X509 usage. How to test this

> command for OpenSSL?

>

>               I found information about this in OpenSSL document

> online which I am briefing here.

>

>               

>

>               x509 - Certificate display and signing utility.

>

>               The x509 command is a multi purpose certificate

> utility.

> It can be used to display certificate information,

> convert certificates

> to various forms, sign certificate requests like a

> ``mini CA'' or edit

> certificate trust settings.

>

>               Since there are a large number of options they

> will

> split up into various sections.

>

>               So I just don't know how to test this utility for

> OpenSSL.

>

>               How to create exe for X509?

>

>               Please suggest.

>

>               

>

>

=== message truncated ===


__________________________________________________

Do You Yahoo!?

Tired of spam?  Yahoo! Mail has the best spam protection around

http://mail.yahoo.com

______________________________________________________________________

OpenSSL Project                                 http://www.openssl.org

User Support Mailing List                    [hidden email]

Automated List Manager                           [hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: Need help for X509

Namrata Patil
In reply to this post by Namrata Patil
RE: Need help for X509

And when I tried to with removing the include file ../../include/openssl/engine.h

Then not able to link the `CRYPTO_cleanup_all_ex_data' which is defined in ex_data.c

 

cc -g -I../../include -Wall   -c -o mkreq.o mkreq.c

mkreq.c: In function `mkreq':

mkreq.c:66: warning: unused variable `exts'

cc -o mkreq mkreq.o -L../.. -lcrypto

mkreq.o: In function `main':

/demos/x509/mkreq.c:42: undefined reference to `CRYPTO_cleanup_all_ex_data'

collect2: ld returned 1 exit status

 


From: [hidden email] [mailto:[hidden email]] On Behalf Of Namrata Patil
Sent: Wednesday, April 19, 2006 6:18 PM
To: [hidden email]
Subject: RE: Need help for X509

 

I used #define OPENSSL_NO_ENGINE and got the message

cc -g -I../../include -Wall   -c -o mkreq.o mkreq.c

In file included from mkreq.c:13:

../../include/openssl/engine.h:70:2: #error ENGINE is disabled.

gmake: *** [mkreq.o] Error 1

in the engine.h file its given like

#ifdef OPENSSL_NO_ENGINE

#error ENGINE is disabled.

#endif

So any help available on this?

 

-----Original Message-----
From: [hidden email] [[hidden email]] On Behalf Of Girish Venkatachalam
Sent: Wednesday, April 19, 2006 5:58 PM
To: [hidden email]
Subject: RE: Need help for X509

the ENGINE interface is the hardware interface of

OpenSSL. If you are not using any cypto hardware you

can safely

#define OPENSSL_NO_ENGINE

CRYPTO_cleanup_all_ex_data() is defined in ex_data.c

file. Make sure your compiler picks up the definition

from there...

--- Namrata Patil <[hidden email]> wrote:

> I am getting the error below now while recompiling

> for x509 .c files.

>

>

> mkreq.c:39: undefined reference to `ENGINE_cleanup'

>

> mkreq.c:41: undefined reference to

> `CRYPTO_cleanup_all_ex_data'

>

>

> here is the ref to above calls in the mkreq.c

>

>

> #ifndef OPENSSL_NO_ENGINE

>

> #include <openssl/engine.h>

>

> #endif

>

>

> int mkreq(X509_REQ **x509p, EVP_PKEY **pkeyp, int

> bits, int serial, int

> days);

>

> int add_ext(STACK_OF(X509_REQUEST) *sk, int nid,

> char *value);

>

>

> int main(int argc, char **argv)

>

>         {

>

>

> #ifndef OPENSSL_NO_ENGINE

>

>         ENGINE_cleanup();

>

> #endif

>

>         CRYPTO_cleanup_all_ex_data();

>

> }

>

>

> So what I should do for this?

>

>

> ________________________________

>

> From: [hidden email]

> [[hidden email]] On Behalf

> Of Ambarish Mitra

> Sent: Wednesday, March 22, 2006 6:36 PM

> To: [hidden email]

> Subject: RE: Need help for X509

>

>

> There is no need to create a new makefile at all. If

> your build was

> successful, you will have the openssl executable(s)

> present already. You

> can use the command line for testing:

>

>

> openssl ca <CA management>

>

> openssl crl <CRL management>

>

> openssl pkcs12 <PKCS management> etc

>

>

>       

>

>       -----Original Message-----

>       From: [hidden email]

> [[hidden email]]On Behalf Of

> Namrata Patil

>       Sent: Wednesday, March 22, 2006 6:17 PM

>       To: [hidden email]

>       Subject: RE: Need help for X509

>

>       So this mean it is just enough to create new make

> file to

> compile C files for mkreq and mkca and directly I

> can use X509 utility?

>

>       

>

>      

> ________________________________

>

>

>       From: [hidden email]

> [[hidden email]] On Behalf

> Of Ambarish Mitra

>       Sent: Wednesday, March 22, 2006 6:06 PM

>       To: [hidden email]

>       Subject: RE: Need help for X509

>

>       

>

>       x509 ca - all CA management utilities

>

>       

>

>       x509 crl - all CRL management utilities.

>

>       

>

>       etc.

>

>       

>

>       The documentation is there in the site. If you have

> any specific

> questions, do let us know and we shall try to help

> you.

>

>       

>

>       

>

>       "How to create exe for X509?" - There is no need to

> 'create'.

> Once you successfully build, it will be created.

>

>       

>

>               -----Original Message-----

>               From: [hidden email]

> [[hidden email]]On Behalf Of

> Namrata Patil

>               Sent: Wednesday, March 22, 2006 5:55 PM

>               To: [hidden email]

>               Subject: Need help for X509

>

>               Hi,

>

>               

>

>               OPENSSL

>               -------

>               demo/x509

>

>               

>

>               

>

>               I noticed that Makefile is not there for X509 in

> demo

> folder.

>

>               So tried to build in X509 by creating new makefile

> and

> was able to get .o and exe for two C files present

> in X509 directory.

>

>               

>

>               I have question about X509 usage. How to test this

> command for OpenSSL?

>

>               I found information about this in OpenSSL document

> online which I am briefing here.

>

>               

>

>               x509 - Certificate display and signing utility.

>

>               The x509 command is a multi purpose certificate

> utility.

> It can be used to display certificate information,

> convert certificates

> to various forms, sign certificate requests like a

> ``mini CA'' or edit

> certificate trust settings.

>

>               Since there are a large number of options they

> will

> split up into various sections.

>

>               So I just don't know how to test this utility for

> OpenSSL.

>

>               How to create exe for X509?

>

>               Please suggest.

>

>               

>

>

=== message truncated ===

 

__________________________________________________

Do You Yahoo!?

Tired of spam?  Yahoo! Mail has the best spam protection around

http://mail.yahoo.com

______________________________________________________________________

OpenSSL Project                                 http://www.openssl.org

User Support Mailing List                    [hidden email]

Automated List Manager                           [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Need help for X509

Saurabh Arora-2
In reply to this post by Namrata Patil
hi

there is no error in mkreq.c code.
its just the lack of documentation for naive users.

heres the commands wch worked for me :

-------------
gcc mkreq.c -o mkreq.o -lcrypto -ldl
-------------

means use 2 libraries - lcrypto , -ldl (although the documentation shows : only lcrypto )





On 4/19/06, Namrata Patil <[hidden email]> wrote:

I am getting the error below now while recompiling for x509 .c files.

 

mkreq.c:39: undefined reference to `ENGINE_cleanup'

mkreq.c:41: undefined reference to `CRYPTO_cleanup_all_ex_data'

 

here is the ref to above calls in the mkreq.c

 

#ifndef OPENSSL_NO_ENGINE

#include <openssl/engine.h>

#endif

 

int mkreq(X509_REQ **x509p, EVP_PKEY **pkeyp, int bits, int serial, int days);

int add_ext(STACK_OF(X509_REQUEST) *sk, int nid, char *value);

 

int main(int argc, char **argv)

        {

 

#ifndef OPENSSL_NO_ENGINE

        ENGINE_cleanup();

#endif

        CRYPTO_cleanup_all_ex_data();

}

 

So what I should do for this?

 


From: [hidden email] [mailto:[hidden email]] On Behalf Of Ambarish Mitra
Sent: Wednesday, March 22, 2006 6:36 PM
To: [hidden email]
Subject: RE: Need help for X509

 

There is no need to create a new makefile at all. If your build was successful, you will have the openssl executable(s) present already. You can use the command line for testing:

 

openssl ca <CA management>

openssl crl <CRL management>

openssl pkcs12 <PKCS management> etc

 

 

-----Original Message-----
From: [hidden email] [mailto:[hidden email]]On Behalf Of Namrata Patil
Sent: Wednesday, March 22, 2006 6:17 PM
To: [hidden email]
Subject: RE: Need help for X509

So this mean it is just enough to create new make file to compile C files for mkreq and mkca and directly I can use X509 utility?

 


From: [hidden email] [mailto:[hidden email]] On Behalf Of Ambarish Mitra
Sent: Wednesday, March 22, 2006 6:06 PM
To: [hidden email]
Subject: RE: Need help for X509

 

x509 ca - all CA management utilities

 

x509 crl - all CRL management utilities.

 

etc.

 

The documentation is there in the site. If you have any specific questions, do let us know and we shall try to help you.

 

 

" How to create exe for X509?" - There is no need to 'create'. Once you successfully build, it will be created.

 

-----Original Message-----
From: [hidden email] [mailto:[hidden email]]On Behalf Of Namrata Patil
Sent: Wednesday, March 22, 2006 5:55 PM
To: [hidden email]
Subject: Need help for X509

Hi,

 

OPENSSL
-------
demo/x509

 

 

I noticed that Makefile is not there for X509 in demo folder.

So tried to build in X509 by creating new makefile and was able to get .o and exe for two C files present in X509 directory.

 

I have question about X509 usage. How to test this command for OpenSSL?

I found information about this in OpenSSL document online which I am briefing here.

 

x509 - Certificate display and signing utility.

The x509 command is a multi purpose certificate utility. It can be used to display certificate information, convert certificates to various forms, sign certificate requests like a ``mini CA'' or edit certificate trust settings.

Since there are a large number of options they will split up into various sections.

So I just don't know how to test this utility for OpenSSL.

How to create exe for X509?

Please suggest.

 

-Namrata.