----- Original Message -----
From: "Oliver Bode" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 27, 2001 7:18 PM
Subject: smime system call problem


> =================================
> #!/usr/bin/perl -w
>
> system("openssl smime -encrypt -in message.txt -out crypto.txt
cert.pem");
>
> print "Content-type: text/html\n\n";
>
> if (-e "crypto.txt") {
> print "crypto.txt exists\n";
> }
>
> else {
> print "crypto.txt failed\n";
> }
> exit;
>
>
Hi,

Seems to me that should work.

Does the script run ok ? ie does it print out "crypto.txt failed" ?

Does 'message.txt' exist in the current directory (presumably your cgi-bin)
when you run the script from the browser ? My guess is that you need to
specify the full path to 'message.txt'. If it can't be found, 'crypto.txt'
won't be created - and you should find some mention of this in the server
error log.

Hth.

Cheers,
Rob

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

Reply via email to