https:// on your local machine without buying a certificate or setting up a certificate authority. Certificates are created automatically when you add a virtual host, or you can generate them manually at any time.
Automatic SSL for virtual hosts
When you create a virtual host using Apache → Add a virtual host, Bearsampp generates an SSL certificate for that domain in the same step. By the time Apache restarts, the virtual host is already configured for both HTTP and HTTPS. No extra action is needed. You can access your site at:http://myproject.localhttps://myproject.local
Generate an SSL certificate manually
If you need a certificate outside the virtual host workflow — for example, for a specific hostname or a custom destination — you can generate one manually.Open the certificate generator
Right-click the tray icon, hover over Apache, and click Generate SSL certificate.
Enter a name
Type the name for the certificate in the Name field. This becomes the filename and the Common Name (CN) of the certificate — for example,
myproject.local.Choose a destination
The destination defaults to
bearsampp/ssl/. Click Browse to choose a different folder if needed.SSL certificate storage
All certificates generated by Bearsampp are stored in thebearsampp/ssl/ folder by default. This includes certificates created automatically for virtual hosts and any certificates you generate manually.
Trusting self-signed certificates in your browser
Because Bearsampp generates self-signed certificates, your browser will show a security warning the first time you visit an HTTPS local address.Bypass in Chrome or Edge
Click Advanced on the warning page, then click Proceed to [site] (unsafe). The site loads and the warning won’t appear again until the certificate changes.
Add to Windows certificate store
For full trust without warnings in all browsers, import the
.crt file into the Windows Certificate Store under Trusted Root Certification Authorities. Open the .crt file and follow the certificate import wizard.Firefox manages its own certificate store separately from Windows. To avoid warnings in Firefox, you must import the certificate directly in Firefox under Settings → Privacy & Security → Certificates → View Certificates → Import.
