Thanks Scott, that did the trick nicely.
Now please turn away as I had to modify the command slightly to get it to work on the fedora linux box I needed it to run on, and am posting it here for the benefit of others:
wget -qO --post-data 'Submit=download' --http-user=admin --http-passwd=<password> --sslcertfile=./<pfSense>.cert https://<pfSense>/diag_backup.php -O <pfSense>_backup.xml
The contents of your <pfSense>.cert can be found by doing the following if you have not generated your own keys or cannot see them in the pfSense System=>Advanced menu:
openssl s_client -connect <pfSense>:443 | tee <pfSense>.log
type QUIT (in capitals)
Have a look in your history and copy'n'paste the bits between the BEGIN CERTIFICATE and END CERTIFICATE to a file(.cert) - make sure to include the BEGIN and END lines as well.
That file is now the .cert file we reference above.
Many thanks for your help Scott.
Glenn Crawford
P.S. I tested the above command and it works on m0n0wall's too :-)
"Scott Ullrich" <[EMAIL PROTECTED]> wrote on 06/10/2006 08:45:42 AM:
> On 10/5/06, [EMAIL PROTECTED]
> <[EMAIL PROTECTED]> wrote:
> >
> > Hi all,
> >
> > I have been having trouble getting an automated script to backup the pfSense
> > configuration file. I have installed my own certificate and told curl where
> > to look for it. It verifies the certificate ok but gets an error
> > "Expectation Failed". Anyone have any idea what I am doing wrong? The
> > same script / command line is working fine for a seperate m0n0wall...
> >
>
> While I am not too sure about CURL, I do know that this wget command works:
>
> wget -qO /tmp/aliases_backup.xml --post-data
> 'Submit=Download&backuparea=aliases' --user=admin --password=pfsense
> --no-check-certificate "https://192.168.1.1/diag_backup.php"
>
> Scott
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
******************************************************************************* Are you Reddy to learn more about our shipshape city? Visit redcliffe.qld.gov.au for the latest information about award-winning Redcliffe - Queensland's Tidiest Town 2005. Better still... why not experience its coastal delights in person? Redcliffe - it's Reddy for Anything! ******************************************************************************* PLEASE NOTE * * * * * * * * * * * * * * * * * * * * This message and any attachments may contain privileged and confidential information intended only for the use of the addressee/s. Any unauthorised use of this material is prohibited. If you have received this message in error, please notify the sender immediately, delete the message and destroy any printed or electronic copies. This Council does not accept any responsibility for any loss or damage that may result from viruses or communication errors. * * * * * * * * * * * * * * * * * * * * * * * * * * * *
