Re: Adding OpenSSL certificate user data with parameters

2007-09-19 Thread Kadir
Hi, Is it possible to give answer of "Sign the certificate? [y/n]:"question to openssl command with some parameters? I prefer "y" option. Does openssl accepts "y" option with the following command by default? openssl ca -batch -key 123456 -config openssl.cnf -out new-cert.pem -infiles new-req

Re: Adding OpenSSL certificate user data with parameters

2007-09-19 Thread Marek Marcola
Hello, > Is it possible to give answer of "Sign the certificate? > [y/n]:"question to openssl command with some parameters? I prefer "y" > option. > > Does openssl accepts "y" option with the following command by default? > > openssl ca -batch -key 123456 -config openssl.cnf -out new-cert.pem >

Re: Adding OpenSSL certificate user data with parameters

2007-09-19 Thread Marek Marcola
Hello, > I solved the problem. I used "-batch" parameter with openssl with the > following command. Now I wonder what is the answers of the questions > (Sign the certificate? [y/n]:"). How can I learn which option [y/n] > (yes/no) is used? In OpenSSL source file apps/ca.c look at 'batch' variable,

Re: Adding OpenSSL certificate user data with parameters

2007-09-19 Thread Kadir
Hi, I solved the problem. I used "-batch" parameter with openssl with the following command. Now I wonder what is the answers of the questions (Sign the certificate? [y/n]:"). How can I learn which option [y/n] (yes/no) is used? openssl ca -batch -key 123456 -config openssl.cnf -out new-cert.p

Re: Adding OpenSSL certificate user data with parameters

2007-09-19 Thread Kadir
Hi, I tried the following command. But this command asks some questions ( for instance it asks me "Sign the certificate? [y/n]:" question) and waits for answer from me. I want to answer this questions with openssl command automatically. Is this possible? # openssl ca -key 123456 -config open

Re: Adding OpenSSL certificate user data with parameters

2007-09-19 Thread Marek Marcola
Hello, > When I run the following command, it doesn' t ask me question about > signing. But I have to press enter button two times. I want to press > only once to enter button. This command creates emtpy new-cert.pem > file and it does not add information to demoCA/index.txt file. Is the > followin

Re: Adding OpenSSL certificate user data with parameters

2007-09-19 Thread Kadir
Hi, When I run the following command, it doesn' t ask me question about signing. But I have to press enter button two times. I want to press only once to enter button. This command creates emtpy new-cert.pem file and it does not add information to demoCA/index.txt file. Is the following command

Re: Adding OpenSSL certificate user data with parameters

2007-09-18 Thread Kadir
Hi, When I run the following command password has not been asked, but 2 confirmation appeared which are like following. Is it possible to give "y" value in openssl parameter. openssl ca -key 123456 -config openssl.cnf -out new-cert3.pem -infiles new-req3.pem Sign the certificate? [y/n]:y 1

Re: Adding OpenSSL certificate user data with parameters

2007-09-18 Thread Marek Marcola
Hello, > When I run the following command password has not been asked, but 2 > confirmation appeared which are like following. Is it possible to give > "y" value in openssl parameter. > > openssl ca -key 123456 -config openssl.cnf -out new-cert3.pem -infiles > new-req3.pem > > Sign the certific

Re: Adding OpenSSL certificate user data with parameters

2007-09-18 Thread Marek Marcola
Hello, > Thanks for your helps. Now I can define country, state, email etc with -subj > parameter. When I try to create a new certificate with my "request > certificate file" in command promt password of the cakey.pem has been asked > like following example. Are there any parameter to add this pass

Re: Adding OpenSSL certificate user data with parameters

2007-09-18 Thread qkadir
-subj > "/C=TR/ST=KOCAELI/L=GEBZE/O=TUBITAK-UEKEAE/OU=OpenTC/CN=Kadir/[EMAIL > PROTECTED]/" > > Best regards, > -- > Marek Marcola <[EMAIL PROTECTED]> > > __________ > OpenSSL Project

Re: Adding OpenSSL certificate user data with parameters

2007-09-18 Thread Marek Marcola
On Tue, 2007-09-18 at 06:00 -0700, qkadir wrote: > Hi, > > I use the following command to create a certificate request. > > openssl req -new -nodes -out new-req.pem -keyout new-key.pem > > But this command demands country, state, organization name, email etc. > information from command line like

Adding OpenSSL certificate user data with parameters

2007-09-18 Thread Kadir
Hi, I use the following command to create a certificate request. openssl req -new -nodes -out new-req.pem -keyout new-key.pem But this command demands country, state, organization name, email etc. information from command line like the following example. I don' t want to enter country, state,

Adding OpenSSL certificate user data with parameters

2007-09-18 Thread qkadir
ent with your certificate request A challenge password []:test An optional company name []:uekae Sincerelly, Kadir. -- View this message in context: http://www.nabble.com/Adding-OpenSSL-certificate-user-data-with-parameters-tf4474210.html#a12756558 Sent from the Open