-
Notifications
You must be signed in to change notification settings - Fork 0
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
how-to-set-up-ssl-certificate-localhost-xampp/ #3
Comments
Can I create multiple certificates for multiple projects following this tutorial? It seems like every certificate is unique so it would not be a problem for windows, but the lines below about Xampp/Apache config make me doubt about it working for different projects: SSLCertificateFile "conf/ssl.crt/server.crt" |
@natirivero You'll have to generate a certificate for each project and store the certificates in different folders. Then, in
Hope this helps 🙌 |
How can I stored them in different folders? Because I think it looks for
these files to be able to generate de cert. To try I delete ssl.crt,
ssl.csr and ssl.key and this didn't auto-generate, I had to restore them.
I guess I could duplicate the existing ones and rename the copy, then
update httpd-vhosts.conf to look for the new copy, and generate a new cert
with the original files?
Regards,
Nat.
El El vie, 23 de feb. de 2024 a la(s) 4:07 p. m., Carol Pelu <
***@***.***> escribió:
… @natirivero <https://github.com/natirivero> You'll have to generate a
certificate for each project and store the certificates in different
folders.
Then, in xampp/apache/conf/extra/httpd-vhosts.conf for every project
within the same Apache server, you'll have to specify the correct path for
SSLCertificateFile & SSLCertificateKeyFile.
# First Project
<VirtualHost *:<your-port>>
ServerName <your-domain>
ServerAlias<your-domain>
DocumentRoot "C:/xampp/htdocs/first-project/public"
</VirtualHost>
<VirtualHost *:<your-port>>
ServerName <your-domain>
ServerAlias <your-domain>
DocumentRoot "C:/xampp/htdocs/first-project/public"
SSLEngine on
SSLCertificateFile "conf/ssl.crt/first-project/server.crt"
SSLCertificateKeyFile "conf/ssl.key/first-project/server.key"
</VirtualHost>
# Second Project
# Third Project and so on...
Hope this helps 🙌
—
Reply to this email directly, view it on GitHub
<#3 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AP2Q274JJYYERC5SXLKM7M3YVEAJNAVCNFSM6AAAAABDXJC3VKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRRHE4TAMJTGE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Yep |
Hi @Tynael I have followed this tutorial and everything was successful. However my site is still showing not secure. I have changed my port to 8085 and have added it to the vhost. I mean the "Common name" part because that seems the part I am not sure of. |
Hey @Highbee4u 👋 |
How to Set Up an SSL Certificate in Localhost for XAMPP
Learn step-by-step how to set up a self-signed SSL certificate on localhost using XAMPP, Apache and OpenSSL. You'll be ready in a few minutes. [VIDEO]
https://neutrondev.com/how-to-set-up-ssl-certificate-localhost-xampp/
The text was updated successfully, but these errors were encountered: