# SSL Certificate on macOS

**URL:** <https://community.localwp.com/t/ssl-certificate-on-macos/45690>\
**Category:** Support\
**Created:** [November 22, 2024, 5:50pm UTC](https://community.localwp.com/t/ssl-certificate-on-macos/45690 "2024-11-22T17:50:17Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fra](https://avatars.discourse-cdn.com/v4/letter/f/a6a055/32.png) [@Fra](https://community.localwp.com/u/Fra)\
**Post date:** [November 22, 2024, 5:50pm UTC](https://community.localwp.com/t/ssl-certificate-on-macos/45690/1 "2024-11-22T17:50:17Z")

</div>

### What issue or error are you experiencing?

I’ve been trying to do everything as displayed in the ‘SSL Certificate on macOS’ guide ([SSL Certificate on macOS - Local](https://localwp.com/help-docs/getting-started/managing-local-sites-ssl-certificate-in-macos/)), but once I open the shell, the ‘wp search-replace’ doesn’t work. Can somebody help me sort this out please?

* * *

### What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc

* * *

### System Details

- **Local Version:**

- **Operating System (OS) and OS version:**

* * *

### Local Logs

Attach your Local Logs here ([Help Doc - Retrieving Local’s Log](https://localwp.com/help-docs/troubleshooting/retrieving-locals-log-file/))

* * *

_ **Security Reminder** _  
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.

---

<div class="post-metadata">

**Author:** ![Fra](https://avatars.discourse-cdn.com/v4/letter/f/a6a055/32.png) [@Fra](https://community.localwp.com/u/Fra)\
**Post date:** [November 22, 2024, 5:54pm UTC](https://community.localwp.com/t/ssl-certificate-on-macos/45690/2 "2024-11-22T17:54:26Z")

</div>

The problem is this: when I click onto ‘Open Site’ from Local, there is no SSL (no https:// at all). I don’t know if this is normal because I am new to this. Thanks in advance to anyone could help me!

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [November 22, 2024, 6:07pm UTC](https://community.localwp.com/t/ssl-certificate-on-macos/45690/3 "2024-11-22T18:07:01Z")

</div>

Hi @Fra

What is your Router Mode set to? Localhost only supports HTTP, so that could be one possibility.

Preferences\>Advanced\>Router Mode

If you’re still having trouble can you send us some screenshots?

Also what is your MacOS version and Local version?

---

<div class="post-metadata">

**Author:** ![Fra](https://avatars.discourse-cdn.com/v4/letter/f/a6a055/32.png) [@Fra](https://community.localwp.com/u/Fra)\
**Post date:** [November 22, 2024, 6:08pm UTC](https://community.localwp.com/t/ssl-certificate-on-macos/45690/4 "2024-11-22T18:08:53Z")

</div>

Router Mode is on Site Domains, so it shouldn’t be a problem I think.

I’ll send a screenshot.  
 ![Screenshot 2024-11-22 alle 19.10.36](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/optimized/3X/b/9/b93a213f7d9a0118af560ae33d50e10279b934d1_2_690x65.png)

macOS version is Sequoia 15.0.1., I updated local two hours ago, so latest version.

Thanks Nick!

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [November 22, 2024, 6:16pm UTC](https://community.localwp.com/t/ssl-certificate-on-macos/45690/5 "2024-11-22T18:16:44Z")

</div>

Are you able to access the front and back ends of the site okay? Or do you get any errors there?

---

<div class="post-metadata">

**Author:** ![Fra](https://avatars.discourse-cdn.com/v4/letter/f/a6a055/32.png) [@Fra](https://community.localwp.com/u/Fra)\
**Post date:** [November 22, 2024, 6:20pm UTC](https://community.localwp.com/t/ssl-certificate-on-macos/45690/6 "2024-11-22T18:20:50Z")

</div>

No errors at all, just when clicking onto Open Site in Local (just right to the WP Admin button) it opens the site without ‘https://’. Maybe it is normal but I don’t know.

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [November 22, 2024, 6:37pm UTC](https://community.localwp.com/t/ssl-certificate-on-macos/45690/7 "2024-11-22T18:37:08Z")

</div>

And your SSL is trusted in your Local app?

---

<div class="post-metadata">

**Author:** ![Fra](https://avatars.discourse-cdn.com/v4/letter/f/a6a055/32.png) [@Fra](https://community.localwp.com/u/Fra)\
**Post date:** [November 23, 2024, 10:01am UTC](https://community.localwp.com/t/ssl-certificate-on-macos/45690/8 "2024-11-23T10:01:54Z")

</div>

Yes it is, that’s why I still can’t understand.

---

<div class="post-metadata">

**Author:** ![emmtre](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/emmtre/32/15116_2.png) [@emmtre](https://community.localwp.com/u/emmtre)\
**Post date:** [November 23, 2024, 10:26am UTC](https://community.localwp.com/t/ssl-certificate-on-macos/45690/9 "2024-11-23T10:26:02Z")

</div>

> [@Fra](#):
>
> The problem is this: when I click onto ‘Open Site’ from Local, there is no SSL (no https:// at all). I don’t know if this is normal because I am new to this. Thanks in advance to anyone could help me!

This is an old known issue depending on if you are running nginx or Apache. If you have changed the Wordpress and Site address to https and the certificate in the Keychain app it “should” work. But for Apache sites I have added a https redirect in the htaccess file. There are several posts here about this problem and I’ll try to dig up some links.

```auto
# BEGIN Redirect to https
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteCond %{SERVER_PORT} !^443$
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
</IfModule>
# END Redirect to https

```

 ![wordpress](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/3X/2/b/2b6b8f9497f89cee30dd841f8817ffdc64c909fa.jpeg)

 ![keychain](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/3X/4/2/42e93b8ec9605d2ae81828c7e36016d335b15ec9.jpeg)

---

<div class="post-metadata">

**Author:** ![emmtre](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/emmtre/32/15116_2.png) [@emmtre](https://community.localwp.com/u/emmtre)\
**Post date:** [November 23, 2024, 10:55am UTC](https://community.localwp.com/t/ssl-certificate-on-macos/45690/10 "2024-11-23T10:55:30Z")

</div>

> [@emmtre](#):
>
> There are several posts here about this problem and I’ll try to dig up some links.

Here is an old post about the same issue. But for me Open Site works now with both nginx and Apache sites. I don’t know if there have been any changes lately in the Local app though.

> [@Site opens in http only](https://community.localwp.com/t/site-opens-in-http-only/41890):
>
> Bug Summary The WP-admin and the Open Site button opens the site in question only via http not https, even though a SSL is set and the cert is trusted in OS X. You CAN change the protocol manually. Once changing the home and siteurl options in the db manually. I can use the WP-admin to force the site via https but not the Open Site button/link. This is both for existing and NEW sites. Apache and NginX do not seem to make a difference. Why is this important? To ensure that remote loaded asset…

---

<div class="post-metadata">

**Author:** ![Fra](https://avatars.discourse-cdn.com/v4/letter/f/a6a055/32.png) [@Fra](https://community.localwp.com/u/Fra)\
**Post date:** [November 23, 2024, 2:04pm UTC](https://community.localwp.com/t/ssl-certificate-on-macos/45690/11 "2024-11-23T14:04:12Z")

</div>

Thank you everyone, maybe it is a bit too advanced for me. The site runs with nginx but I still have that problem when opening it via the “open site” button. I don’t know why, but as I said, maybe it has to be this way. I’ve done everything as shown in the two previous images.

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [November 25, 2024, 2:07pm UTC](https://community.localwp.com/t/ssl-certificate-on-macos/45690/12 "2024-11-25T14:07:19Z")

</div>

Thank you for that @emmtre I had forgotten about that bug. It seems like that could be at play here for sure but I would think they should still be able to access Site Shell and perform basic functions there yeah? I haven’t seen anyone mention that being an issue.

---

<div class="post-metadata">

**Author:** ![emmtre](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/emmtre/32/15116_2.png) [@emmtre](https://community.localwp.com/u/emmtre)\
**Post date:** [November 25, 2024, 8:27pm UTC](https://community.localwp.com/t/ssl-certificate-on-macos/45690/13 "2024-11-25T20:27:11Z")

</div>

> [@Nick-B](#):
>
> Thank you for that @emmtre I had forgotten about that bug. It seems like that could be at play here for sure but I would think they should still be able to access Site Shell and perform basic functions there yeah? I haven’t seen anyone mention that being an issue.

Yeah, that’s strange. I would start by checking the WP-CLI installation with the usual commands like `which wp` and `wp --info`. And post the output when launching the shell.

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [November 26, 2024, 2:32pm UTC](https://community.localwp.com/t/ssl-certificate-on-macos/45690/14 "2024-11-26T14:32:57Z")

</div>

Hey @Fra

You can see some suggestions from `emmtre` above here. If you’re still having trouble you might also try a full reinstall to refresh here in case something has been corrupted.

- Export any sites that you have on Local and save them to a folder somewhere on your computer: [Backup a Local Site - Local](https://localwp.com/help-docs/getting-started/how-to-backup-a-local-site/)

- Fully uninstall Local from your computer with the steps for your specific OS here: [Uninstall Local - Local](https://localwp.com/help-docs/troubleshooting/uninstalling-local/)

- Install the latest version of Local on this link: [Releases - Local](https://localwp.com/releases/)

- Once installed, please restart the computer.

- When the computer is restarted and turned on, close any applications that automatically run in the background (AntiVirus, Firewall, and other Developer applications included).

- Check and see if the issue still persists. If so, please provide us with an updated log: [Retrieve Local’s Log File - Local](https://localwp.com/help-docs/troubleshooting/retrieving-locals-log-file/)

---

<div class="post-metadata">

**Author:** ![Fra](https://avatars.discourse-cdn.com/v4/letter/f/a6a055/32.png) [@Fra](https://community.localwp.com/u/Fra)\
**Post date:** [November 27, 2024, 1:19pm UTC](https://community.localwp.com/t/ssl-certificate-on-macos/45690/15 "2024-11-27T13:19:51Z")

</div>

Thank you both, I’ll try to sort it out and if it doesn’t work I’ll do what you suggested! 🙏

---

<div class="post-metadata">

**Author:** ![Fra](https://avatars.discourse-cdn.com/v4/letter/f/a6a055/32.png) [@Fra](https://community.localwp.com/u/Fra)\
**Post date:** [November 27, 2024, 1:31pm UTC](https://community.localwp.com/t/ssl-certificate-on-macos/45690/16 "2024-11-27T13:31:37Z")

</div>

Hi, I’ve opened the shell and launched the commands you suggested. Do I need to post the screenshot?

---

<div class="post-metadata">

**Author:** ![Fra](https://avatars.discourse-cdn.com/v4/letter/f/a6a055/32.png) [@Fra](https://community.localwp.com/u/Fra)\
**Post date:** [November 27, 2024, 1:38pm UTC](https://community.localwp.com/t/ssl-certificate-on-macos/45690/17 "2024-11-27T13:38:15Z")

</div>

Hi @Nick-B,

any updates regarding the bug that @emmtre linked?

Thanks!

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [November 27, 2024, 1:49pm UTC](https://community.localwp.com/t/ssl-certificate-on-macos/45690/18 "2024-11-27T13:49:57Z")

</div>

The Bug is still open but I’m not 100% sure that is the same issue you are facing here. That’s why I suggested potentially doing a full reinstall here.

Is there anything else unique about your device or connection? Is your device issued by an employer, or do use it with an employer network, proxy, or VPN?

---

<div class="post-metadata">

**Author:** ![Fra](https://avatars.discourse-cdn.com/v4/letter/f/a6a055/32.png) [@Fra](https://community.localwp.com/u/Fra)\
**Post date:** [November 27, 2024, 2:03pm UTC](https://community.localwp.com/t/ssl-certificate-on-macos/45690/19 "2024-11-27T14:03:02Z")

</div>

Not at all, it is my personal MacBook and I just use a normal internet network. I really don’t know what’s going on because the only problem is with the Open Site button that always opens without SSL. The WP Admin works perfectly fine.

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [November 27, 2024, 2:06pm UTC](https://community.localwp.com/t/ssl-certificate-on-macos/45690/20 "2024-11-27T14:06:48Z")

</div>

If that’s the only issue you have now then it may be related to the bug above, but what I was trying to dig into was your Site Shell CLI issues. Are you still running into problems there?

[Next page](https://community.localwp.com/t/ssl-certificate-on-macos/45690.md?page=2)
