# macOS: duplicate certificates after renewal

**URL:** <https://community.letsencrypt.org/t/macos-duplicate-certificates-after-renewal/29679>\
**Category:** Server\
**Created:** [March 12, 2017, 8:25pm UTC](https://community.letsencrypt.org/t/macos-duplicate-certificates-after-renewal/29679 "2017-03-12T20:25:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![senthor](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@senthor](https://community.letsencrypt.org/u/senthor)\
**Post date:** [March 12, 2017, 8:25pm UTC](https://community.letsencrypt.org/t/macos-duplicate-certificates-after-renewal/29679/1 "2017-03-12T20:25:39Z")

</div>

Hello everyone,  
I have installed letsencrypt on a macOS Sierra server according to this tutorial by @JeffTheRocker : [Complete guide to install SSL certificate on your OS X server hosted website](https://community.letsencrypt.org/t/complete-guide-to-install-ssl-certificate-on-your-os-x-server-hosted-website/15005)

Everything seems to be working just fine, including the check via .well-known. However, after renewing, a seperate (duplicate) cert is added to keychain and the Server app, not replacing the old one, and is not automatically activated. So, currently, I still have to manually change the certificate every 3 months.

I have found this possible solution by @cyrilpic : [Mac OSX (Server): import LE certificate?](https://community.letsencrypt.org/t/mac-osx-server-import-le-certificate/5447/26)  
The linked script ([https://gist.github.com/cyrilpic/4504527de3a7b08ed84e](https://gist.github.com/cyrilpic/4504527de3a7b08ed84e)) seems to include all necessary commands to fix renewing, however after some hours of trying I have not succeeded in combining the renewal script from the tutorial and the github-linked one.

Some help would be greatly appreciated! Thanks a lot.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/letsencrypt/original/3X/c/a/ca6c06ea1ea201324bba7048c6841ce60236468d.png) [@system](https://community.letsencrypt.org/u/system)\
**Post date:** [April 11, 2017, 8:25pm UTC](https://community.letsencrypt.org/t/macos-duplicate-certificates-after-renewal/29679/2 "2017-04-11T20:25:49Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
