<div dir="ltr">H,<input name="virtru-metadata" type="hidden" value="{"email-policy":{"state":"closed","expirationUnit":"days","disableCopyPaste":false,"disablePrint":false,"disableForwarding":false,"expires":false,"isManaged":false},"attachments":{}}"><div><br></div><div>Can you please help to fix it ? expire= is already fixed but issue still persists.</div><div><br></div><div>Regards.<br>Shahzaib</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 3, 2016 at 9:30 PM, shahzaib mushtaq <span dir="ltr"><<a href="mailto:shahzaib.cb@gmail.com" target="_blank">shahzaib.cb@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<input name="virtru-metadata" type="hidden" value="{"email-policy":{"state":"closed","expirationUnit":"days","disableCopyPaste":false,"disablePrint":false,"disableForwarding":false,"expires":false,"isManaged":false},"attachments":{}}"><div><br></div><div>Thanks for response though i already had fixed this mistake, during copy/paste the commands on this forum made a typo. Here you can see i've created date + md5 but still 403 error :</div><div><br></div><div><a href="http://prntscr.com/c1690d" target="_blank">http://prntscr.com/c1690d</a><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 3, 2016 at 9:21 PM, Maxim Dounin <span dir="ltr"><<a href="mailto:mdounin@mdounin.ru" target="_blank">mdounin@mdounin.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello!<br>
<span><br>
On Wed, Aug 03, 2016 at 08:38:36PM +0500, shahzaib mushtaq wrote:<br>
<br>
> Hi,<br>
><br>
> We've configured nginx --with-http_secure_link_module to secure the mp4<br>
> links. Currently we're testing it with very basic settings. Following is<br>
> brief explanation of our lab :<br>
><br>
> A test.mp4 file is located under directory /tunefiles/files/test.mp4 . Our<br>
> objective is to access this file over secure link such as<br>
><br>
>  <a href="http://192.168.1.192/files/test.mp4?md5=XXXXXX&expire=2314444" rel="noreferrer" target="_blank">http://192.168.1.192/files/test.mp4?md5=XXXXXX&expire=2314444</a> .<br>
><br>
> Here is the config of http-secure-link :<br>
><br>
> <a href="http://pastebin.com/N41WQASj" rel="noreferrer" target="_blank">http://pastebin.com/N41WQASj</a><br>
><br>
> We've constructed the md5 & expire using following commands :<br>
><br>
> #expiry date is 31st december<br>
> $date -d "2016-12-31 23:59" +%s<br>
> 1470240179<br>
><br>
> #md5<br>
> $echo -n '1470240179/files/test.mp4 secret' | openssl md5 -binary | openssl<br>
> base64 | tr +/ -_ | tr -d =<br>
> fY8Iyuqah9coPxTDk-UvVg<br>
><br>
><br>
> Once everything is constructed, we loaded the following URL into the<br>
> browser & encountered the error 403:<br>
><br>
> <a href="http://192.168.1.192/files/test.mp4?md5=fY8Iyuqah9coPxTDk-UvVg&expire=1470240179" rel="noreferrer" target="_blank">http://192.168.1.192/files/test.mp4?md5=fY8Iyuqah9coPxTDk-UvVg&expire=1470240179</a><br>
<br>
</span>You are using "expire=" in the request, but "$arg_expires" in the<br>
configuration.  Note the trailing "s".<br>
<span><font color="#888888"><br>
--<br>
Maxim Dounin<br>
<a href="http://nginx.org/" rel="noreferrer" target="_blank">http://nginx.org/</a><br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</font></span></blockquote></div><br></div>
</div></div></blockquote></div><br></div>