---
title: How to Install an SSL Certificate on Windows MAMP PRO
date: 2022-01-12T16:24:00+00:00
author: John Henry Donovan
canonical_url: "https://johnhenry.ie/blog/2022/01/how-to-install-an-ssl-certificate-on-windows-mamp-pro"
section: Blog
---
Browse by categoryAll PostsWeb DevelopmentDesignLifestyleMusic &amp; FilmTutorialsSpottedSpeakingReviewsFound FoodRecipesIreland

[](/blog)

# How To Install An SSL Certificate On Windows MAMP PRO

Posted on 12th January, 2022

Easily create a locally-trusted development certificate for MAMP PRO on Windows. Just as simple on a Mac too.

## How to install mkcert on Windows 10⁄11

[mkcert](https://github.com/FiloSottile/mkcert) is a simple tool for making locally-trusted development certificates. It requires no configuration. My preference is to use [Chocolatey](https://chocolatey.org/).

```php
$ choco install mkcert

$ mkcert -install
Created a new local CA ?
The local CA is now installed in the system trust store! ⚡️
The local CA is now installed in the Firefox trust store (requires browser restart)! ?
```

## Create the Cert

Now let’s make a cert for your MAMP Virtual Host. My local dev site is ***johnhenry.test***

Choose a place for all your Certs. I keep them in a directory where my MAMP Sites live — name directory whatever you wish.

***C:\\Users\\johnhenry\\Sites\\CERTS*** or ***C:\\MAMP\\htdocs\\certs***

```twig
$ cd C:\Users\johnhenry\Sites\CERTS

$ mkcert johnhenry.test

Created a new certificate valid for the following names ?
 - "johnhenry.test"

The certificate is at "./johnhenry.test.pem" and the key at "./johnhenry.test-key.pem" ✅

It will expire on 12 April 2024 ?

$ openssl pkey -in johnhenry.test-key.pem -out johnhenry.test.key
```

Inside your new certs folder, you will now have the following files **johnhenry.test.key**, **johnhenry.test.pem** and **johnhenry.test-key.pem

## Connect your Cert to MAMP PRO  

Open up MAMP PRO Hosts settings. Next, click on your domain and then the SSL tab.

Tick to turn SSL on. For the certificate file, we will hook it up with **johnhenry.test.pem**. When you click *Choose…*, initially, you will not see the *.pem* file as it’s looking for a *.crt,.cert* file. Change selection to *All files (\*.\*)* and pick the correct file.

For the Certificate key file, choose the **johnhenry.test.key** file. Click Save and restart your servers. When you visit your local site, you will not get any warning and will have a fully working trusted certificate.

![Mamp pro screenshot](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAVCAIAAACor3u9AAAACXBIWXMAAA7EAAAOxAGVKw4bAAABIklEQVQ4jZWVSxLEIAhE6ZT3v23WzMJfN0gyoabMqPgaiFHc923DYDCs/9L0pxubm5m79vuT/S5eAouGcibIyzgPXnu4YD8NxRRJAwaYwS4z9DlA1525aQqrsYVi74ZzsCm+3UevvMuoz8ZccS3RF6aWQo9q8Da0y0yvvgFaxAj9JBZlJ3TnwGFYiwX6lx7C8p2lbtMmvqhSyfLTct3h7NPSmn8K5cEdzqPCu77TI4K8DtbEReh1ob5Y9ZK/0KU+B4GSjle2l9yTgAb7SHdCVxJQAX2rp3Npg+iM9imXwPOb0xIF5kv9PSox2Mf6ljnFHYB5xUwCkxJ/ddrDFt4Tqc5ThpMYnnQ8u4UbjaT298XaAaclGj8+yk8CWStZjDomKBo/LiRade/z1bMAAAAASUVORK5CYII=)

### Share this link via

###### Or copy link

Copy

[ Previous Blog Post

Bending The Craft CMS Control Pan…](https://johnhenry.ie/blog/2022/10/bending-the-craft-cms-control-panel "Previous Blog Post")

[Next Blog Post

The Font Fixing Magicians](https://johnhenry.ie/blog/2021/11/the-font-fixing-magicians "Next Blog Post")

I'm a no-nonsense, experienced website developer who works with Content Management Sytems and specializes in Craft CMS.

[Lets Talk Today!](https://johnhenry.ie/contact)
