-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSL certificate invalid #233
Comments
What exactly are you trying to achieve importing the certificate? What do you mean with "ssl certificate is invalid"? For which domain was the certificate signed for? |
I got same issue. UBUNTU 18.04.3
chrome shows
So I did command below
Then I tried to import manually.
|
it's pretty much the same what @tuffkidd already described |
I solved my issue. My solutionsUnsecure mysite valet unsecure mysite Remove rm -rf ~/.pki Make pki directory and change permission mkdir -p $HOME/.pki/nssdb
chmod -R 700 $HOME/.pki Secure site : then Valet creates valet secure mysite Check the files. ls -al ~/.pki/nssdb
Change the files owner
Then |
@tuffkidd thanks for your answer, but still it isn't working for me The output of
is
and the output of
is
also when I try to check this in the mysite folder itself
I get this (with leading space)
also when I try this
I get this
but if I try this
I get this
|
Have you tried?:
I never need to attach the site name in order to secure them |
@mhsolutions I exactly don't know why. But you can try @jmarcher answer. I think you should show us
Make sure that the command is |
@jmarcher
and from the outside with:
@tuffkidd
yes sure to secure the site I always use |
Now I see you are using a Linux subsystem, I wonder if this is the problem, I do not have access to a Windows machine to test this, but maybe there is the problem. |
@jmarcher Thank you for quick update! Yeh! |
I had the same problem just go into your browser -> certifcate -> authorities -> import LaravelValetCASelfSigned LaravelValetCASelfSigned is place in your $HOME/.valet/CA Then if you re on chrome just enable this parameter chrome://flags/#allow-insecure-localhost . If you re not on chrome you should have a parameter like this to find. |
|
I've tried, but still not working |
Scroll down to the Laravel certificate on that list, edit it and select to enable verification of websites. This worked for me in Chrome on PopOS (Ubuntu). |
big thanks to @chiptu , for anyone having hard time finding the browser settings chrome : search for |
This worked for me! |
where can i get LaravelValetCASelfSigned? |
Then open Chrome and paste this in the search: Leave this open then run the following in a terminal for WSL cd ~/.valet/CA
explorer.exe . Copy the path in the top bar in the explorer and paste into the browse dialog we opened previously (should look something like below): Then select Then click Open, Next, Next, Finish Close your browser and open it again and you should have all sites served by valet secure |
this one work for me, I am using wsl2 ubuntu 22.04 |
It works fine on Ubuntu 23.04 Lunar Lobster and Valet v2.3.0 |
all above method does not work for me on Ubuntu 20.04. step #1 rm ~/.valet/CA
valet install step #2 refresh the browser page now doesn't show certificate error anymore.. hell yeah!! |
Work for me OS: Ubuntu 24.04 |
I am having trouble to get HTTPS working on my site:
WSL UBUNTU PHP 7.2.10-0ubuntu0.18.04.1
Chrome Version 77.0.3865.120 (Official Build) (64-bit)
Valet v2.1.10
I also tried FF and Edge with same result.
In Edge I saved the SSL certificate in a file and then tried to import this file to chrome. This gives me a success message, but the certificate is not showing in chrome.
I did secure my site:
$ valet secured mysite.test
mysite.test is secured.
The text was updated successfully, but these errors were encountered: