Hi,

I am using Expect to automate certificate generation.  The last step
involves exporting the certificate into pkc212 format.  Everything works
great when I type the commands directly.  However, when I execute the
command in Expect the output file has zero length.

The format of the command is:

spawn openssl pkcs12 -export -in newcert.pem -inkey newkey.pem -name
"Certificate Name" -certfile cacert.pem -out newcert.p12
expect "PEM pass phrase:"
send "password\r"
expect "Export Password:"
send "password\r"
expect "Export Password:"
send "password\r"

No error is generated but newcert.p12 usually is zero length.  I am using
other openssl commands successfully in Expect.

Has anybody elso ran into this problem with openssl and the pkcs12 command ?

Thanks in advance,
Arend van der Veen


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to