SSL certificate / Trusted site

Bug Summary

I can´t get to make my local site to be trusted (https or SSL certificate)

Steps to reproduce

  1. Install site
  2. Click on Trusted
  3. Open keychain Access, go to mysite.local certificate, and set everything to “Always Trust”
  4. Open site shell, and replace http with https
  5. Stop site, and start agin
  6. Click Open site
  7. The site remains untrusted.

note 1: If i type https://my-site.local it works as trusted, and I can navigate the pages as trusted, but when I start the site the first time, it appears untrusted.

note 2: I have followed the steps from this page: SSL Certificate on macOS - Local

I think there is a typo error here:

  1. to update http:// to https://. Using the above site as an example, the command would look something like:
    wp search-replace 'http://ssl-madness.local' 'https:ssl-madness.local'

note that that command is missing // on the https replace. I think that instead of
'https:ssl-madness.local'
it should be
'https//:ssl-madness.local'

I haven’t deleted the certificate from nginx/certs as mentioned in the last section SSL ERR_CERT_INVALID on Local v6.4.1+ because my site has been created with a newer version (8.2.0)

Environment Info

Describe your environment.

  • What Operating System are you using?
    macOS Sonoma 14.2.1 | Chip Apple M1 Pro

- What versions of site software (Nginx, Apache, PHP, MySQL) is used?
nginx, MySQL 8.0.16

  • What version of Local is installed?
    8.2.0

Supporting info

Please provide your Local Log. See this Community Forum post for instructions on how to do so:

here you go:
local-lightning.log (49.9 KB)

Include any screenshots or video recordings of the issue to help others reproduce.
here yo go: wp

pd: Thanks for the “Draft” feature, I closed this tab by error, and I thought I had lost everything I have written!

Hello @brfignoni - thank you for letting us know about the typo on that help doc - we have updated it.

To be clear, are you only experiencing that the site is not coming through as trusted when you click “Open Site” or “WP Admin” buttons from the Local app?

Have you cleared your cache?

Sam

Hello @sambrockway
Thank you for your kind answer.

I am only experiencing that the site is not coming through as trusted when I click on “Open site”. If I click on “WP Admin” it seems to works just fine (trsuted).

1 Like

Hi @brfignoni

Have you done any cache troubleshooting to see if your browser is just holding on to to the insecure version? If not you may need to try clearing the cache and cookies on your browser and then closing your active sessions to start with a clean slate.

How do I clear my browser’s cache?

You may also try utilizing a different browser (Firefox, Safari, Internet Explorer if you’re using Chrome for example) or an Incognito window to troubleshoot further.

The easiest way to open an Incognito window is with the keyboard shortcut combination Ctrl-Shift-N (Windows) or Command-Shift-N (macOS). Another way is to click on the menu on the upper right — it’s three vertical dots — and select New Incognito Window from the list.

1 Like