Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

getting the input not from command line

6 views
Skip to first unread message

prabhu kalyan rout

unread,
Oct 19, 2011, 8:43:47 AM10/19/11
to
Hi,
As per my project requirement i should configure the openssl req
command in such a way that it will not ask the user information from
prompt.
Is there any way so that i can directly pass the information in the
command line or through a file.

kindly help

Regards Prabhu
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openss...@openssl.org
Automated List Manager majo...@openssl.org

Jakob Bohm

unread,
Oct 19, 2011, 10:16:03 AM10/19/11
to
Use the option -subj and adjust other settings in openssl.cnf to make
things easier.

prabhu kalyan rout

unread,
Oct 19, 2011, 11:32:45 AM10/19/11
to
Hi jakob,
Thanks for you help.

Can you please give me one example of the -subj option.

Thanks & Regards
Prabhu

Jakob Bohm

unread,
Oct 19, 2011, 11:56:07 AM10/19/11
to
There is almost an example on the documentation page for the req utility.

I have not used it myself, but it seems this would be a typical example:

-subj "/DC=org/DC=OpenSSL/DC=users/CN=John Doe"

On 10/19/2011 5:32 PM, prabhu kalyan rout wrote:
> Hi jakob,
> Thanks for you help.
>
> Can you please give me one example of the -subj option.
>
> Thanks& Regards

prabhu kalyan rout

unread,
Oct 19, 2011, 12:55:57 PM10/19/11
to
Thanks jakob,
I am able to do it. now i have another problem.

The below command generate a signed certificate. but to generate it
ask for the user permission.
what i want is it will directly generate the certificate with out
asking the user permission. please find the command below.

openssl ca -in requests/garexWEB.CSR -cert ../CA/garexCA.CRT -keyfile
../CA/garexCA.KEY -out certificates/garexWEB.CRT

is there any way to do it.

Regards Prabhu

Sergio NNX

unread,
Oct 19, 2011, 1:21:22 PM10/19/11
to
Ciao.

If you use 'prompt = no' in openssl.conf, then it won't ask anything. I'm using it and it works ok!

Cheers.

Sergio.

> Date: Wed, 19 Oct 2011 22:25:57 +0530
> Subject: Re: getting the input not from command line
> From: pkr...@gmail.com
> To: openss...@openssl.org
0 new messages