https download file with custom S3 URLnginx HTTPS serving with same config as HTTPHandling http and https requests using a single port with nginxIn Nginx, how can I rewrite all http requests to https while maintaining sub-domain?IIS website http ok but https cannot find resource (status code 404)DNS to an Amazon S3 bucket suddenly stopped workingIs it possible to do client certificate authentication without running HTTPS on a webserver?“Securely” download a file over https without using authenticationRedirect HTTP to HTTPs using .htaccess and mod_rewriteDisable HTTPS for one of two name-based websites, hosted on one IP addressWhat AWS service to avoid CORS issues with S3 static content and aws backends

Does ls -R make any sense with -d?

Why is Ni[(PPh₃)₂Cl₂] tetrahedral?

How to make Flex Markers appear in Logic Pro X?

Can diplomats be allowed on the flight deck of a commercial European airline?

What is the required burn to keep a satellite at a Lagrangian point?

nginx conf: http2 module not working in Chrome in ubuntu 18.04

Can someone get a spouse off a deed that never lived together and was incarcerated?

A nasty indefinite integral

Ribbon Cable Cross Talk - Is there a fix after the fact?

What defines a person who is circumcised "of the heart"?

Ways to spot non-sentient, non-conscious, telepathic shapeshifters

How to become an Editorial board member?

How can I reduce the size of matrix?

Writing "hahaha" versus describing the laugh

Why starbase in not connected to the Trade Network?

Which are the advantages/disadvantages of includestandalone?

Team member is vehemently against code formatting

size of pointers and architecture

Caught with my phone during an exam

What pc resources are used when bruteforcing?

why "American-born", not "America-born"?

Download app bundles from App Store to run on iOS Emulator on Mac

Find this Unique UVC Palindrome ( ignoring signs and decimal) from Given Fractional Relationship

Why is the Psionic Artificer considered to be better than all other tier 1 classes?



https download file with custom S3 URL


nginx HTTPS serving with same config as HTTPHandling http and https requests using a single port with nginxIn Nginx, how can I rewrite all http requests to https while maintaining sub-domain?IIS website http ok but https cannot find resource (status code 404)DNS to an Amazon S3 bucket suddenly stopped workingIs it possible to do client certificate authentication without running HTTPS on a webserver?“Securely” download a file over https without using authenticationRedirect HTTP to HTTPs using .htaccess and mod_rewriteDisable HTTPS for one of two name-based websites, hosted on one IP addressWhat AWS service to avoid CORS issues with S3 static content and aws backends






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








-1















I believe the following question should be asked here and not @Super User.



My web application is using S3 for users to download files. Prior customizing the url, files were downloaded from S3 with this url scheme:



https://mybucket.s3-website-us-west-1.amazonaws.com/file.zip


I wanted to hide from the users that i am using S3 for my files, so i made a new CName (files.mydomain.com) at my DNS panel with the value S3.amazonaws.com .



Now the url is http://files.mydomain.com/file.zip .



My question is since the file is hosted at S3 (which by default uses https://) are still the files downloaded via secure http? Note that i am using http for my subdomain.



I hope i made it clear.



Thanks










share|improve this question






























    -1















    I believe the following question should be asked here and not @Super User.



    My web application is using S3 for users to download files. Prior customizing the url, files were downloaded from S3 with this url scheme:



    https://mybucket.s3-website-us-west-1.amazonaws.com/file.zip


    I wanted to hide from the users that i am using S3 for my files, so i made a new CName (files.mydomain.com) at my DNS panel with the value S3.amazonaws.com .



    Now the url is http://files.mydomain.com/file.zip .



    My question is since the file is hosted at S3 (which by default uses https://) are still the files downloaded via secure http? Note that i am using http for my subdomain.



    I hope i made it clear.



    Thanks










    share|improve this question


























      -1












      -1








      -1








      I believe the following question should be asked here and not @Super User.



      My web application is using S3 for users to download files. Prior customizing the url, files were downloaded from S3 with this url scheme:



      https://mybucket.s3-website-us-west-1.amazonaws.com/file.zip


      I wanted to hide from the users that i am using S3 for my files, so i made a new CName (files.mydomain.com) at my DNS panel with the value S3.amazonaws.com .



      Now the url is http://files.mydomain.com/file.zip .



      My question is since the file is hosted at S3 (which by default uses https://) are still the files downloaded via secure http? Note that i am using http for my subdomain.



      I hope i made it clear.



      Thanks










      share|improve this question
















      I believe the following question should be asked here and not @Super User.



      My web application is using S3 for users to download files. Prior customizing the url, files were downloaded from S3 with this url scheme:



      https://mybucket.s3-website-us-west-1.amazonaws.com/file.zip


      I wanted to hide from the users that i am using S3 for my files, so i made a new CName (files.mydomain.com) at my DNS panel with the value S3.amazonaws.com .



      Now the url is http://files.mydomain.com/file.zip .



      My question is since the file is hosted at S3 (which by default uses https://) are still the files downloaded via secure http? Note that i am using http for my subdomain.



      I hope i made it clear.



      Thanks







      https amazon-s3






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Aug 21 '14 at 7:02









      MadHatter

      70.8k11147207




      70.8k11147207










      asked Aug 21 '14 at 6:40









      Theodoros80Theodoros80

      1073




      1073




















          3 Answers
          3






          active

          oldest

          votes


















          3














          No, your files are not being downloaded via https, since your link is with http.



          What you need to do is to put your S3 bucket behind CloudFront. In CloudFront, you have the ability to upload a custom SSL certificate to use with your CNAME (and it is free for SNI-based SSL).






          share|improve this answer























          • So i am loosing the https functionality with my custom url. :( That's no good. Thanks.

            – Theodoros80
            Aug 21 '14 at 6:56











          • Why not use CloudFront? It is not expensive at all and if you set it to cache the files from S3, the speed is MUCH better for CloudFront.

            – Florin Asăvoaie
            Aug 21 '14 at 7:07











          • Well,to be honest, i haven't looked at CF at all and i don't what learning-curve has..

            – Theodoros80
            Aug 21 '14 at 7:10






          • 1





            Takes 15 minutes to set it up in front of S3, including reading the doc on how to do it. :)

            – Florin Asăvoaie
            Aug 21 '14 at 7:11











          • I think this will solve my problem, although will take more than 15 minutes :) bryce.fisher-fleig.org/blog/…

            – Theodoros80
            Aug 21 '14 at 7:19


















          0














          Well a CNAME doesnt change anything. Client is still connecting to the IP, not the name. Though im surprised that CNAME'ing just works, without having to add the new name to the server.



          Is the connection HTTPS? Who knows. You may be redirected from HTTP to HTTPS or you may not. Impossible to say really without an actually download link to test with.



          You can test with wget on a linux commandline.



          wget http://files.mydomain.com/file.zip


          and see if you get redirected to https before download.






          share|improve this answer























          • I'll check it.thnks

            – Theodoros80
            Aug 21 '14 at 6:59











          • Oh yeah.. @FlorinAsavoaie points out the certificate issue too. If you were to download from a browser using your new url and you got redirected to HTTPS, you'd get a certificate warning, since you didnt give amazon a certificate for you hostname.

            – thelogix
            Aug 21 '14 at 7:01


















          -1














          try this



          wget --no-check-certificate --no-proxy --user=username --ask-password -O "downlod url "






          share|improve this answer























          • There's a reason if https uses certificates to check the server identity. Skipping the certificate check is bad practice, and must never be done in production environments. If you do this, any man-in-the-middle attack would go undetected (so someone that can see and modify the packets between the client and the server can eavesdrop on the connection and worse even modify it).

            – Ale
            May 8 at 12:48











          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "2"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f622955%2fhttps-download-file-with-custom-s3-url%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          3 Answers
          3






          active

          oldest

          votes








          3 Answers
          3






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          3














          No, your files are not being downloaded via https, since your link is with http.



          What you need to do is to put your S3 bucket behind CloudFront. In CloudFront, you have the ability to upload a custom SSL certificate to use with your CNAME (and it is free for SNI-based SSL).






          share|improve this answer























          • So i am loosing the https functionality with my custom url. :( That's no good. Thanks.

            – Theodoros80
            Aug 21 '14 at 6:56











          • Why not use CloudFront? It is not expensive at all and if you set it to cache the files from S3, the speed is MUCH better for CloudFront.

            – Florin Asăvoaie
            Aug 21 '14 at 7:07











          • Well,to be honest, i haven't looked at CF at all and i don't what learning-curve has..

            – Theodoros80
            Aug 21 '14 at 7:10






          • 1





            Takes 15 minutes to set it up in front of S3, including reading the doc on how to do it. :)

            – Florin Asăvoaie
            Aug 21 '14 at 7:11











          • I think this will solve my problem, although will take more than 15 minutes :) bryce.fisher-fleig.org/blog/…

            – Theodoros80
            Aug 21 '14 at 7:19















          3














          No, your files are not being downloaded via https, since your link is with http.



          What you need to do is to put your S3 bucket behind CloudFront. In CloudFront, you have the ability to upload a custom SSL certificate to use with your CNAME (and it is free for SNI-based SSL).






          share|improve this answer























          • So i am loosing the https functionality with my custom url. :( That's no good. Thanks.

            – Theodoros80
            Aug 21 '14 at 6:56











          • Why not use CloudFront? It is not expensive at all and if you set it to cache the files from S3, the speed is MUCH better for CloudFront.

            – Florin Asăvoaie
            Aug 21 '14 at 7:07











          • Well,to be honest, i haven't looked at CF at all and i don't what learning-curve has..

            – Theodoros80
            Aug 21 '14 at 7:10






          • 1





            Takes 15 minutes to set it up in front of S3, including reading the doc on how to do it. :)

            – Florin Asăvoaie
            Aug 21 '14 at 7:11











          • I think this will solve my problem, although will take more than 15 minutes :) bryce.fisher-fleig.org/blog/…

            – Theodoros80
            Aug 21 '14 at 7:19













          3












          3








          3







          No, your files are not being downloaded via https, since your link is with http.



          What you need to do is to put your S3 bucket behind CloudFront. In CloudFront, you have the ability to upload a custom SSL certificate to use with your CNAME (and it is free for SNI-based SSL).






          share|improve this answer













          No, your files are not being downloaded via https, since your link is with http.



          What you need to do is to put your S3 bucket behind CloudFront. In CloudFront, you have the ability to upload a custom SSL certificate to use with your CNAME (and it is free for SNI-based SSL).







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Aug 21 '14 at 6:54









          Florin AsăvoaieFlorin Asăvoaie

          6,3641733




          6,3641733












          • So i am loosing the https functionality with my custom url. :( That's no good. Thanks.

            – Theodoros80
            Aug 21 '14 at 6:56











          • Why not use CloudFront? It is not expensive at all and if you set it to cache the files from S3, the speed is MUCH better for CloudFront.

            – Florin Asăvoaie
            Aug 21 '14 at 7:07











          • Well,to be honest, i haven't looked at CF at all and i don't what learning-curve has..

            – Theodoros80
            Aug 21 '14 at 7:10






          • 1





            Takes 15 minutes to set it up in front of S3, including reading the doc on how to do it. :)

            – Florin Asăvoaie
            Aug 21 '14 at 7:11











          • I think this will solve my problem, although will take more than 15 minutes :) bryce.fisher-fleig.org/blog/…

            – Theodoros80
            Aug 21 '14 at 7:19

















          • So i am loosing the https functionality with my custom url. :( That's no good. Thanks.

            – Theodoros80
            Aug 21 '14 at 6:56











          • Why not use CloudFront? It is not expensive at all and if you set it to cache the files from S3, the speed is MUCH better for CloudFront.

            – Florin Asăvoaie
            Aug 21 '14 at 7:07











          • Well,to be honest, i haven't looked at CF at all and i don't what learning-curve has..

            – Theodoros80
            Aug 21 '14 at 7:10






          • 1





            Takes 15 minutes to set it up in front of S3, including reading the doc on how to do it. :)

            – Florin Asăvoaie
            Aug 21 '14 at 7:11











          • I think this will solve my problem, although will take more than 15 minutes :) bryce.fisher-fleig.org/blog/…

            – Theodoros80
            Aug 21 '14 at 7:19
















          So i am loosing the https functionality with my custom url. :( That's no good. Thanks.

          – Theodoros80
          Aug 21 '14 at 6:56





          So i am loosing the https functionality with my custom url. :( That's no good. Thanks.

          – Theodoros80
          Aug 21 '14 at 6:56













          Why not use CloudFront? It is not expensive at all and if you set it to cache the files from S3, the speed is MUCH better for CloudFront.

          – Florin Asăvoaie
          Aug 21 '14 at 7:07





          Why not use CloudFront? It is not expensive at all and if you set it to cache the files from S3, the speed is MUCH better for CloudFront.

          – Florin Asăvoaie
          Aug 21 '14 at 7:07













          Well,to be honest, i haven't looked at CF at all and i don't what learning-curve has..

          – Theodoros80
          Aug 21 '14 at 7:10





          Well,to be honest, i haven't looked at CF at all and i don't what learning-curve has..

          – Theodoros80
          Aug 21 '14 at 7:10




          1




          1





          Takes 15 minutes to set it up in front of S3, including reading the doc on how to do it. :)

          – Florin Asăvoaie
          Aug 21 '14 at 7:11





          Takes 15 minutes to set it up in front of S3, including reading the doc on how to do it. :)

          – Florin Asăvoaie
          Aug 21 '14 at 7:11













          I think this will solve my problem, although will take more than 15 minutes :) bryce.fisher-fleig.org/blog/…

          – Theodoros80
          Aug 21 '14 at 7:19





          I think this will solve my problem, although will take more than 15 minutes :) bryce.fisher-fleig.org/blog/…

          – Theodoros80
          Aug 21 '14 at 7:19













          0














          Well a CNAME doesnt change anything. Client is still connecting to the IP, not the name. Though im surprised that CNAME'ing just works, without having to add the new name to the server.



          Is the connection HTTPS? Who knows. You may be redirected from HTTP to HTTPS or you may not. Impossible to say really without an actually download link to test with.



          You can test with wget on a linux commandline.



          wget http://files.mydomain.com/file.zip


          and see if you get redirected to https before download.






          share|improve this answer























          • I'll check it.thnks

            – Theodoros80
            Aug 21 '14 at 6:59











          • Oh yeah.. @FlorinAsavoaie points out the certificate issue too. If you were to download from a browser using your new url and you got redirected to HTTPS, you'd get a certificate warning, since you didnt give amazon a certificate for you hostname.

            – thelogix
            Aug 21 '14 at 7:01















          0














          Well a CNAME doesnt change anything. Client is still connecting to the IP, not the name. Though im surprised that CNAME'ing just works, without having to add the new name to the server.



          Is the connection HTTPS? Who knows. You may be redirected from HTTP to HTTPS or you may not. Impossible to say really without an actually download link to test with.



          You can test with wget on a linux commandline.



          wget http://files.mydomain.com/file.zip


          and see if you get redirected to https before download.






          share|improve this answer























          • I'll check it.thnks

            – Theodoros80
            Aug 21 '14 at 6:59











          • Oh yeah.. @FlorinAsavoaie points out the certificate issue too. If you were to download from a browser using your new url and you got redirected to HTTPS, you'd get a certificate warning, since you didnt give amazon a certificate for you hostname.

            – thelogix
            Aug 21 '14 at 7:01













          0












          0








          0







          Well a CNAME doesnt change anything. Client is still connecting to the IP, not the name. Though im surprised that CNAME'ing just works, without having to add the new name to the server.



          Is the connection HTTPS? Who knows. You may be redirected from HTTP to HTTPS or you may not. Impossible to say really without an actually download link to test with.



          You can test with wget on a linux commandline.



          wget http://files.mydomain.com/file.zip


          and see if you get redirected to https before download.






          share|improve this answer













          Well a CNAME doesnt change anything. Client is still connecting to the IP, not the name. Though im surprised that CNAME'ing just works, without having to add the new name to the server.



          Is the connection HTTPS? Who knows. You may be redirected from HTTP to HTTPS or you may not. Impossible to say really without an actually download link to test with.



          You can test with wget on a linux commandline.



          wget http://files.mydomain.com/file.zip


          and see if you get redirected to https before download.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Aug 21 '14 at 6:59









          thelogixthelogix

          37917




          37917












          • I'll check it.thnks

            – Theodoros80
            Aug 21 '14 at 6:59











          • Oh yeah.. @FlorinAsavoaie points out the certificate issue too. If you were to download from a browser using your new url and you got redirected to HTTPS, you'd get a certificate warning, since you didnt give amazon a certificate for you hostname.

            – thelogix
            Aug 21 '14 at 7:01

















          • I'll check it.thnks

            – Theodoros80
            Aug 21 '14 at 6:59











          • Oh yeah.. @FlorinAsavoaie points out the certificate issue too. If you were to download from a browser using your new url and you got redirected to HTTPS, you'd get a certificate warning, since you didnt give amazon a certificate for you hostname.

            – thelogix
            Aug 21 '14 at 7:01
















          I'll check it.thnks

          – Theodoros80
          Aug 21 '14 at 6:59





          I'll check it.thnks

          – Theodoros80
          Aug 21 '14 at 6:59













          Oh yeah.. @FlorinAsavoaie points out the certificate issue too. If you were to download from a browser using your new url and you got redirected to HTTPS, you'd get a certificate warning, since you didnt give amazon a certificate for you hostname.

          – thelogix
          Aug 21 '14 at 7:01





          Oh yeah.. @FlorinAsavoaie points out the certificate issue too. If you were to download from a browser using your new url and you got redirected to HTTPS, you'd get a certificate warning, since you didnt give amazon a certificate for you hostname.

          – thelogix
          Aug 21 '14 at 7:01











          -1














          try this



          wget --no-check-certificate --no-proxy --user=username --ask-password -O "downlod url "






          share|improve this answer























          • There's a reason if https uses certificates to check the server identity. Skipping the certificate check is bad practice, and must never be done in production environments. If you do this, any man-in-the-middle attack would go undetected (so someone that can see and modify the packets between the client and the server can eavesdrop on the connection and worse even modify it).

            – Ale
            May 8 at 12:48















          -1














          try this



          wget --no-check-certificate --no-proxy --user=username --ask-password -O "downlod url "






          share|improve this answer























          • There's a reason if https uses certificates to check the server identity. Skipping the certificate check is bad practice, and must never be done in production environments. If you do this, any man-in-the-middle attack would go undetected (so someone that can see and modify the packets between the client and the server can eavesdrop on the connection and worse even modify it).

            – Ale
            May 8 at 12:48













          -1












          -1








          -1







          try this



          wget --no-check-certificate --no-proxy --user=username --ask-password -O "downlod url "






          share|improve this answer













          try this



          wget --no-check-certificate --no-proxy --user=username --ask-password -O "downlod url "







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered May 8 at 10:31









          DinoDino

          1




          1












          • There's a reason if https uses certificates to check the server identity. Skipping the certificate check is bad practice, and must never be done in production environments. If you do this, any man-in-the-middle attack would go undetected (so someone that can see and modify the packets between the client and the server can eavesdrop on the connection and worse even modify it).

            – Ale
            May 8 at 12:48

















          • There's a reason if https uses certificates to check the server identity. Skipping the certificate check is bad practice, and must never be done in production environments. If you do this, any man-in-the-middle attack would go undetected (so someone that can see and modify the packets between the client and the server can eavesdrop on the connection and worse even modify it).

            – Ale
            May 8 at 12:48
















          There's a reason if https uses certificates to check the server identity. Skipping the certificate check is bad practice, and must never be done in production environments. If you do this, any man-in-the-middle attack would go undetected (so someone that can see and modify the packets between the client and the server can eavesdrop on the connection and worse even modify it).

          – Ale
          May 8 at 12:48





          There's a reason if https uses certificates to check the server identity. Skipping the certificate check is bad practice, and must never be done in production environments. If you do this, any man-in-the-middle attack would go undetected (so someone that can see and modify the packets between the client and the server can eavesdrop on the connection and worse even modify it).

          – Ale
          May 8 at 12:48

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Server Fault!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f622955%2fhttps-download-file-with-custom-s3-url%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          How to write a 12-bar blues melodyI-IV-V blues progressionHow to play the bridges in a standard blues progressionHow does Gdim7 fit in C# minor?question on a certain chord progressionMusicology of Melody12 bar blues, spread rhythm: alternative to 6th chord to avoid finger stretchChord progressions/ Root key/ MelodiesHow to put chords (POP-EDM) under a given lead vocal melody (starting from a good knowledge in music theory)Are there “rules” for improvising with the minor pentatonic scale over 12-bar shuffle?Confusion about blues scale and chords

          What if the end-user didn't have the required library?What is setup.py?What is a clean, pythonic way to have multiple constructors in Python?What does Ruby have that Python doesn't, and vice versa?What is the reason for having '//' in Python?How do I create a namespace package in Python?How to package shared objects that python modules depend on?setuptools vs. distutils: why is distutils still a thing?Navigation in Windows 10 vs code not going to virtualenv library when the same library is installed at user levelPython create package for local usePackaging a project that uses multiple python versionsWhy is permission denied on pip install except for when “--user” is included at end of command?

          Esgonzo ibérico Índice Descrición Distribución Hábitat Ameazas Notas Véxase tamén "Acerca dos nomes dos anfibios e réptiles galegos""Chalcides bedriagai"Chalcides bedriagai en Carrascal, L. M. Salvador, A. (Eds). Enciclopedia virtual de los vertebrados españoles. Museo Nacional de Ciencias Naturales, Madrid. España.Fotos