You cannot get the file on a non-secure protocol(i.e. http). Try running it on HTTPS protocol.
For enabling the SSl you need to provide the key(i.e private key). You can generate the key using -genkey.
For more information, check out this AWS Tutorial.