Skip to content
This repository has been archived by the owner on May 5, 2021. It is now read-only.

Commit

Permalink
Add example openssl config
Browse files Browse the repository at this point in the history
Fixes: freeipa#15
  • Loading branch information
mkosek committed Apr 23, 2020
1 parent 861f02a commit f4904f1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ These two scripts try to automatically obtain and install Let's Encrypt certs
to FreeIPA web interface.

To use it, do this:
* BACKUP /etc/httpd/alias to some safe place (it contains private keys!)
* BACKUP /var/lib/ipa/certs/ and /var/lib/ipa/private/ to some safe place (it contains private keys!)
* clone/unpack all scripts including "ca" subdirectory somewhere
* set WORKDIR and EMAIL variables in scripts setup-le.sh and renew-le.sh
* set EMAIL variable in renew-le.sh
* set FQDN in ipa-httpd.cnf
* run setup-le.sh script once to prepare the machine. The script will:
* install Let's Encrypt client package
* install Let's Encrypt CA certificates into FreeIPA certificate store
Expand Down
18 changes: 18 additions & 0 deletions ipa-httpd.cnf
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# the fully qualified server (or service) name
FQDN = server.example.test
ALTNAMES = DNS:$FQDN

# --- no modifications required below ---
[ req ]
default_bits = 2048
default_md = sha256
prompt = no
encrypt_key = no
distinguished_name = dn
req_extensions = req_ext

[ dn ]
CN = $FQDN

[ req_ext ]
subjectAltName = $ALTNAMES

0 comments on commit f4904f1

Please sign in to comment.