添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

I downloaded a project on localhost via bitbucket, I set up a virtual host but I have an error on each browser that the certificate is self-signed. I created the certificate in xampp and added it to trusted certificates in the chrome / windows 10 settings and unfortunately I still have the same error.

The project is on laravel 5 and in env file, I set the http and APP_DEV domain to local.

My virtual host:

<VirtualHost *:443>
    DocumentRoot "E:\xampp\htdocs\project\public"
    ServerName project.app
    SSLEngine On
    SSLCertificateFile "E:/xampp/apache/conf/ssl.crt/server.crt"
    SSLCertificateKeyFile "E:/xampp/apache/conf/ssl.key/server.key"
    <Directory "E:\xampp\htdocs\project\public">
    Order allow,deny
    Allow from all
    </Directory>
</VirtualHost>

I would like to run a project via virtual host on laravel 5. Unfortunately, I still have the error HSTS MOZILLA_PKIX_ERROR_SELF_SIGNED_CERT on Firefox, and NET :: ERR_CERT_COMMON_NAME_INVALID on Chrome. I will add that I only want to run the project locally on the localhost, therefore no certificate is needed here, but the browser blocks

Does this answer your question? How to Get SSL Certificate to Work With Localhost on Firefox – JonathanDavidArndt Dec 14, 2022 at 19:54

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.