Skip to content

Instantly share code, notes, and snippets.

@MikeeI
Forked from Fastidious/mobileconfig-letsencrypt.md
Last active October 31, 2021 16:37
Show Gist options
  • Save MikeeI/97a2be7076a562c77fbfdb696be74311 to your computer and use it in GitHub Desktop.
Save MikeeI/97a2be7076a562c77fbfdb696be74311 to your computer and use it in GitHub Desktop.
Sign mobileconfig files with Letsencrypt
#!/bin/bash

certs="/etc/letsencrypt/live/ievents.me"

openssl smime \
    -sign \
    -signer ${certs}/cert.pem \
    -inkey ${certs}/privkey.pem \
    -certfile ${certs}/chain.pem \
    -nodetach \
    -outform der \
    -in user.mobileconfig \
    -out user-signed.mobileconfig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment