How to set up SSL (HTTPS) in Apache locally?

Asked

Viewed 516 times

0

For testing purposes, I need to locally configure my Apache to accept access to a particular site configured in Virtualhost with SSL.

I believe that knowing somehow configure SSL in a local environment is very useful for those who work with the development of a website where it is necessary to access the webcam, for example, visa that these resources have been recently blocked in browsers with "insecure" connection (no HTTPS). So, to perform local testing, I would need to have apache configured with SSL to be able to test these features.

So how can I set up my Apache to accept SSL access locally?

Is there any way to my site http://localhost can be accessed as https://localhost?

  • https://www.vivaolinux.com.br/artigo/Configuraca-do-SSL-no-Apache?pagina=3 Viva...

  • I think the way it is, it’s wide.

  • @Magichat Pow, is not wide... Just generate the keys, point in apache by Virtualhost and restart... I didn’t answer because I’m lazy, but it’s not a big deal

  • I don’t know, your way of thinking is different from mine, so I didn’t vote, if the community thinks like you good... but it’s a lot of steps, and you don’t even mention your platform... and alias what it is lovslmmyr?

  • @Magichat a new language. It is written by programmers who are not used to using the right notebook, kkkkkk

  • You want to do this on linux or windows ?

  • Watch the video as it teaches you how to do right just follow the steps. https://www.youtube.com/watch?v=JfRy5coRcCE&t=71s

  • @Magichat for both would be important, but my real focus is linux. But other users may be interested in Windows.

  • There is a tutorial here, I’m following to add on a host with windows: http://stackoverflow.com/questions/4221874/how-do-i-allow-https-for-apache-on-localhost

Show 4 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.