4

I am working on Windows 10, using Ampps. I have created a domain (tps.local) using Ampps Panel with support to SSL. I see it creates a cert, but when I work from Chrome I get Get ERR_SSL_SERVER_CERT_BAD_FORMAT error.

I have tried:

  1. Importing certificate as trusted.
  2. Setting url on Windows trusted sites list.
  3. Changing flag in Chrome to allow unsecure localhost certificate
  4. Setting time adjustment to automatic
  5. Cleared SSL cache.
  6. After every change I have restarted chrome using chrome://restart

Do I have to create a new certificate? I have installed OpenSSL for Windows, but I am not sure (if necessary) how to proceed since Ampps already created a cert.

Eduardo
  • 1,781
  • 3
  • 26
  • 61

2 Answers2

5

Fixed problem by self-signing certificate here: I've entered "somesite.local 192.168.0.2". Then add domain in ampps panel with SSL checkbox on.

Then replace apache\conf\ssl_key\YOURDOMAIN.key and apache\conf\ssl_crt\YOURDOMAIN.crt with those you got from zerossl.

Note: Don't forget to restart Apache

Chaminda Bandara
  • 2,067
  • 2
  • 28
  • 31
Anatoly Sokolov
  • 188
  • 1
  • 8
  • I searched high and low for solution that would work: and this did. Thank you so much for the answer :) – Terry Aug 21 '18 at 20:00
1

It's not a solution, but a workaround:

Switch to Firefox, because you can easily ignore the warning there (at least for now - Firefox 58).

Numb Erc
  • 65
  • 1
  • 7