Re: Adding OpenSSL certificate user data with parameters

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Kadir 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 the following example. I don' t want to
> enter country, state, organization name etc from command line like this
> example. I want to add this information (country, name, email etc) with some
> parameters like "-country TR -state KOCAELI ..."  to openssl command.  How
> can I do this?
> 

you need a openssl config file and then 
call for example:
openssl req -new -nodes -out new-req.pem -keyout new-key.pem -config openssl.cnf

see 
man req

hope that helps

wof
-- 
The From: and Reply-To: addresses are internal news2mail gateway addresses.
Reply to the list or to Wolfgang Aigner <wolfgang.aigner@xxxxxxxxxx>

-
Linux-crypto:  cryptography in and on the Linux system
Archive:       http://mail.nl.linux.org/linux-crypto/


[Index of Archives]     [Kernel]     [Linux Crypto]     [Gnu Crypto]     [Gnu Classpath]     [Netfilter]     [Bugtraq]
  Powered by Linux