Re: Adding OpenSSL certificate user data with parameters

Wolfgang Aigner <[email protected]>
Newsgroups gmane.linux.cryptography
Organization Secaron AG Munich
Message-ID <[email protected]>
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 <[email protected]>

-
Linux-crypto:  cryptography in and on the Linux system
Archive:       http://mail.nl.linux.org/linux-crypto/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.