Where certificates are stored
All generated SSL certificates are saved in thessl/ folder inside your Bearsampp directory:
servername.crt— the certificate fileservername.key— the private key file
Generate an SSL certificate manually
You can generate a certificate for any hostname directly from the tray menu.Right-click the Bearsampp tray icon
Find the Bearsampp icon in your Windows system tray and right-click it.
Enter the server name
In the Name field, type the hostname you want the certificate for (e.g.
myapp.local). The dialog pre-fills test.local as a placeholder.Choose an output folder
The Target field defaults to
bearsampp\ssl\. Click Browse to choose a different output folder, or leave the default.SSL and virtual hosts
When you add a virtual host using the tray menu, Bearsampp automatically generates an SSL certificate for that virtual host’s server name and stores it inbearsampp\ssl\. You do not need to generate the certificate separately.
See Virtual Hosts for instructions on creating a virtual host.
Default SSL port
Apache’s default HTTPS port is443. You can change it from the tray menu like any other port — see Change Service Ports.
Trusting the certificate in your browser
Bearsampp generates self-signed certificates. Browsers do not trust self-signed certificates by default, so you will see a security warning the first time you visit an HTTPS site using a Bearsampp certificate. You have two options:Accept the warning
In most browsers, you can click Advanced and then Proceed to [hostname] to continue past the warning. This is the quickest option for local development.
Add to trust store
Import the
.crt file into Windows’ Certificate Manager as a trusted root authority. This removes the browser warning permanently for that certificate.Adding a certificate to the Windows trust store
Open the certificate file
Navigate to
bearsampp\ssl\ and double-click the .crt file for your hostname.Choose the certificate store
Select Place all certificates in the following store, click Browse, and choose Trusted Root Certification Authorities.
