# Make HTTPS work from local's localhost

**URL:** <https://community.localwp.com/t/make-https-work-from-locals-localhost/327>\
**Category:** Support\
**Created:** [December 22, 2016, 7:57pm UTC](https://community.localwp.com/t/make-https-work-from-locals-localhost/327 "2016-12-22T19:57:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![michael](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@michael](https://community.localwp.com/u/michael)\
**Post date:** [December 22, 2016, 7:57pm UTC](https://community.localwp.com/t/make-https-work-from-locals-localhost/327/1 "2016-12-22T19:57:44Z")

</div>

HTTPS is set up but if I SSH in and run “curl [http://mydomain.dev](http://mydomain.dev)” I get

`curl: (7) Failed to connect to woodlakemedical.dev port 443: Connection refused`

I think the docker machine proxies all SSL connections to the individual site’s HTTP server.

With the site not listening on HTTPS some methods of HTTPS checking break, and wkhtmltopdf doesn’t work if the CSS was requested over SSL.

---

<div class="post-metadata">

**Author:** ![michael](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@michael](https://community.localwp.com/u/michael)\
**Post date:** [March 2, 2017, 9:02pm UTC](https://community.localwp.com/t/make-https-work-from-locals-localhost/327/3 "2017-03-02T21:02:01Z")

</div>

This has come up again. Give-WP shows an error saying “Your site appears to be blocking the WordPress ajax interface. This may cause issues with Give.”. It tests for admin-ajax.php access with wp\_remote\_post() which goes over HTTPS if FORCE\_SSL\_ADMIN is set.

Local should support local HTTPS connections!

---

<div class="post-metadata">

**Author:** ![elliota](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/elliota/32/1961_2.png) [@elliota](https://community.localwp.com/u/elliota)\
**Post date:** [November 29, 2017, 10:42am UTC](https://community.localwp.com/t/make-https-work-from-locals-localhost/327/4 "2017-11-29T10:42:59Z")

</div>

any resolution to this? seems like many people are having this issue w/o much luck on what to do. Flywheel doesn’t seem to work 100% if using SSL on a local site. Wordpress cURL functions are broken.

---

<div class="post-metadata">

**Author:** ![michael](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@michael](https://community.localwp.com/u/michael)\
**Post date:** [July 23, 2018, 4:40pm UTC](https://community.localwp.com/t/make-https-work-from-locals-localhost/327/5 "2018-07-23T16:40:12Z")

</div>

Hey Local! Any response to this? Can we make it a feature request?

---

<div class="post-metadata">

**Author:** ![clay](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clay/32/8248_2.png) [@clay](https://community.localwp.com/u/clay)\
**Post date:** [July 23, 2018, 7:25pm UTC](https://community.localwp.com/t/make-https-work-from-locals-localhost/327/6 "2018-07-23T19:25:19Z")

</div>

@michael,

This should be resolved.

What version of Local are you running? Also, what’s the “Environment Version” for the sites you’re having trouble with?

---

<div class="post-metadata">

**Author:** ![michael](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@michael](https://community.localwp.com/u/michael)\
**Post date:** [July 23, 2018, 7:48pm UTC](https://community.localwp.com/t/make-https-work-from-locals-localhost/327/7 "2018-07-23T19:48:03Z")

</div>

2.2.4  
Custom environment on both sites

Steps to reproduce:

1. Right click site name and “Open Site SSH”
2. Run `curl https://othersite.local`
3. See failure ☹

EDIT: I installed `curl` myself. For a test you can do on a default install, run `php -r "readfile('https://othersite.local');"` instead of `curl`

 ![flywheel_https](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/2X/2/2928ade76c761a34ba9b2c839e65eebdb5df31ff.gif)

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [August 25, 2020, 6:31pm UTC](https://community.localwp.com/t/make-https-work-from-locals-localhost/327/8 "2020-08-25T18:31:20Z")

</div>

Closed on August 25, 2020, 6:31pm UTC


