[ZendTo] help with autorequest
Jules
Jules at Zend.To
Thu May 21 10:33:12 BST 2020
Luigi,
Using https://localhost/ is almost inevitably going to fail. Try using
the name of the host that is on the SSL cert that the server is using.
Also, the "--insecure" option is there to tell curl to not do all the
certificate checks it would normally. That definitely improves its
chances of working if you use https://localhost/ !
Also, add the "--debug" option to the autorequest command, and it will
show you the curl command instead of executing it. Then you can copy and
paste that curl command into a shell and run it manually without any of
the --silent or other "quietening" option. At which point you can see
what's happening.
Cheers,
Jules.
On 21/05/2020 09:40, Luigi Capriotti via ZendTo wrote:
> Hi,
>
> would anyone please clarify what I am doing wrong with autorequest, as
> I invoke the script with:
>
> USERNAME=lcapriotti
> PASSWORD=MYPASSWORD
>
> SENDEREMAIL=<email of the recipient of the request>
> SENDERNAME=SNAME
> SENDERORG=SORG
>
> RECIPIENTNAME=<email of the internal user who shall receive the file>
> RECIPIENTEMAIL=RECEMAIL
>
> SUBJECT='Test'
> PASSPHRASE=ANYPWD
>
> NOTE="Test Note"
>
> bash -x /opt/zendto/bin/autorequest --username $USERNAME --password
> "$PASSWORD" --senderemail $SENDEREMAIL --sendername "$SENDERNAME"
> --senderorg $SENDERORG \
> --subject "$SUBJECT" --passphrase "$PASSPHRASE"
> --recipientname "$RECIPIENTNAME" --recipientemail $RECIPIENTEMAIL \
> --note "$NOTE" -i https://localhost/
>
> but I cannot get any result - neither as output from the script nor in
> practical terms (no requests are generated).
> ZendTo logs states I am authenticating correctly though:
>
> 2020-05-21 10:39:17 ::1 [ZendTo]: Info: user authentication verified
> user as 'lcapriotti'
> 2020-05-21 10:39:17 ::1 [ZendTo]: Info: Creating request with
> encryption enabled
>
> Thanks in advance
> Luigi
>
> _______________________________________________
> ZendTo mailing list
> ZendTo at zend.to
> http://jul.es/mailman/listinfo/zendto
Jules
--
Julian Field MEng CEng CITP MBCS MIEEE MACM
'People will believe a big lie sooner than a little one, and if you
repeat it frequently enough people will sooner or later believe
it.' - Walter Langer
www.Zend.To
Twitter: @JulesFM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jul.es/pipermail/zendto/attachments/20200521/60e2fea6/attachment.html>
More information about the ZendTo
mailing list