> http://www.openssl.org/docs/apps/config.html

Okay, thanks, I had seen that. I thought there must be more.

> Did you run openssl.exe from the same command prompt where you
> typed the SET commands?

Absolutely. It is in fact a .BAT file. The following is an exact
cut-and-paste from the file, with only the one node name slightly censored:

set VAR_DNS_1 = MYNOTEBOOK
set VAR_DNS_2 = localhost

C:\OpenSSL-Win32\bin\openssl.exe req -newkey rsa:2048 -sha1 -keyout
%1_server.key.pem -out %1_server.req.pem

Do I also need an [ ENV ] section? 

Charles

-----Original Message-----
From: owner-openssl-us...@openssl.org
[mailto:owner-openssl-us...@openssl.org] On Behalf Of jb-open...@wisemo.com
Sent: Sunday, August 19, 2012 11:17 PM
To: openssl-users@openssl.org
Subject: Re: How tell OpenSSL to prompt?

On 19-08-2012 15:05, CharlesTSR wrote:

>> On Sat, Aug 18, 2012, Charles Mills wrote:
>>> <snip>
>> There is no prompt option but you can use the $ENV syntax to expand an
>> environment variable and use that on the command line.
> Thanks.
> I apologize -- I freely admit I have not RTFM. Where IS the top level
> documentation for the configuration file? Where is the starting point?

http://www.openssl.org/docs/apps/config.html

> I am missing some step here. I am running on Windows 7. I say
> set VAR_DNS_1 = foo.com
> set VAR_DNS_2 = bar.com
> Then in the configuration file I say
> [ alt_names ]
> DNS.1 = $ENV::VAR_DNS_1 # line 224 of the configuration file
> DNS.2 = $ENV::VAR_DNS_2
> OpenSSL gives me the error
> 5288:error:0E065068:configuration file routines:STR_COPY:variable has no
> value:.\crypto\conf\conf_def.c:618:line 224
> What else do I need to do? Thanks much, and apologies for the dumb
> questions.

Did you run openssl.exe from the same command prompt where you
typed the SET commands?

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to