21
FreeIPA 3.3 Training Series FreeIPA 3.3 Training Series Blending FreeIPA in a Certificate Infrastructure Jan Cholasta 2014-02-18

Blending FreeIPA in a Certificate Infrastructure...3 FreeIPA 3.3 Training Series FreeIPA and PKI (2) FreeIPA server LDAP PKI KDC HTTP DNS CLI/UI certmonger NTP certificates certmonger

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Blending FreeIPA in a Certificate Infrastructure...3 FreeIPA 3.3 Training Series FreeIPA and PKI (2) FreeIPA server LDAP PKI KDC HTTP DNS CLI/UI certmonger NTP certificates certmonger

FreeIPA 3.3 Training SeriesFreeIPA 3.3 Training Series

Blending FreeIPA in a Certificate

Infrastructure

Jan Cholasta

2014-02-18

Page 2: Blending FreeIPA in a Certificate Infrastructure...3 FreeIPA 3.3 Training Series FreeIPA and PKI (2) FreeIPA server LDAP PKI KDC HTTP DNS CLI/UI certmonger NTP certificates certmonger

2 FreeIPA 3.3 Training Series

FreeIPA and PKI (1)

● Some services require certificates for secure communication

● FreeIPA includes CA to issue certificates● FreeIPA server certificates● Certificates for hosts and services in the FreeIPA

domain

● Dogtag certificate system● Manages PKI● Provides CA for FreeIPA

Page 3: Blending FreeIPA in a Certificate Infrastructure...3 FreeIPA 3.3 Training Series FreeIPA and PKI (2) FreeIPA server LDAP PKI KDC HTTP DNS CLI/UI certmonger NTP certificates certmonger

3 FreeIPA 3.3 Training Series

FreeIPA and PKI (2)

FreeIPA server

LDAP

PKI KDC

HTTP

DNS

CLI/UIcertmonger

NTP

certificates

certmonger

certmonger

certmonger

Page 4: Blending FreeIPA in a Certificate Infrastructure...3 FreeIPA 3.3 Training Series FreeIPA and PKI (2) FreeIPA server LDAP PKI KDC HTTP DNS CLI/UI certmonger NTP certificates certmonger

4 FreeIPA 3.3 Training Series

FreeIPA and PKI (3)

● The FreeIPA CA needs to be trusted by all clients● So that FreeIPA services can be authenticated

● CA certificate is provided to clients● Done during client install

Page 5: Blending FreeIPA in a Certificate Infrastructure...3 FreeIPA 3.3 Training Series FreeIPA and PKI (2) FreeIPA server LDAP PKI KDC HTTP DNS CLI/UI certmonger NTP certificates certmonger

5 FreeIPA 3.3 Training Series

FreeIPA CA variants (1)

● FreeIPA with managed CA (“CA-ful”)● FreeIPA manages the CA

– Dogtag● Two available install options

– Self-signed – FreeIPA CA is the root CA– Externally signed – FreeIPA CA is subordinate of external

CA● Automatic provisioning and renewal of FreeIPA service

certificates

Page 6: Blending FreeIPA in a Certificate Infrastructure...3 FreeIPA 3.3 Training Series FreeIPA and PKI (2) FreeIPA server LDAP PKI KDC HTTP DNS CLI/UI certmonger NTP certificates certmonger

6 FreeIPA 3.3 Training Series

FreeIPA CA variants (2)

● FreeIPA with unmanaged CA (“CA-less”)● CA is outside of FreeIPA

– Can be anything● User is in charge of providing and renewing FreeIPA

service certificates

Page 7: Blending FreeIPA in a Certificate Infrastructure...3 FreeIPA 3.3 Training Series FreeIPA and PKI (2) FreeIPA server LDAP PKI KDC HTTP DNS CLI/UI certmonger NTP certificates certmonger

FreeIPA 3.3 Training SeriesFreeIPA 3.3 Training Series

FreeIPA Self-Signed CA

Page 8: Blending FreeIPA in a Certificate Infrastructure...3 FreeIPA 3.3 Training Series FreeIPA and PKI (2) FreeIPA server LDAP PKI KDC HTTP DNS CLI/UI certmonger NTP certificates certmonger

8 FreeIPA 3.3 Training Series

FreeIPA Self-Signed CA

FreeIPA server

PKI

certmonger

certmonger

certmonger

CN=host1.example.com,O=EXAMPLE.COM

CN=host2.example.com,O=EXAMPLE.COM

CN=host3.example.com,O=EXAMPLE.COM

CN=Certificate Authority,O=EXAMPLE.COM

certmonger

CN=idm.example.com,O=EXAMPLE.COM

Page 9: Blending FreeIPA in a Certificate Infrastructure...3 FreeIPA 3.3 Training Series FreeIPA and PKI (2) FreeIPA server LDAP PKI KDC HTTP DNS CLI/UI certmonger NTP certificates certmonger

9 FreeIPA 3.3 Training Series

FreeIPA Self-Signed CA Install (1)

● Default install mode

● To install first master, run ipa-server-install without any special options:ipa-server-install

Page 10: Blending FreeIPA in a Certificate Infrastructure...3 FreeIPA 3.3 Training Series FreeIPA and PKI (2) FreeIPA server LDAP PKI KDC HTTP DNS CLI/UI certmonger NTP certificates certmonger

10 FreeIPA 3.3 Training Series

FreeIPA Self-Signed CA Install (2)

● To prepare replica, run ipa-replica-prepare without any special options:

● To install replica, run ipa-replica-install without any special options:

ipa-replica-install replica-info-replica.example.com.gpg

ipa-replica-prepare replica.example.com

Page 11: Blending FreeIPA in a Certificate Infrastructure...3 FreeIPA 3.3 Training Series FreeIPA and PKI (2) FreeIPA server LDAP PKI KDC HTTP DNS CLI/UI certmonger NTP certificates certmonger

FreeIPA 3.3 Training SeriesFreeIPA 3.3 Training Series

FreeIPA Externally Signed CA

Page 12: Blending FreeIPA in a Certificate Infrastructure...3 FreeIPA 3.3 Training Series FreeIPA and PKI (2) FreeIPA server LDAP PKI KDC HTTP DNS CLI/UI certmonger NTP certificates certmonger

12 FreeIPA 3.3 Training Series

FreeIPA Externally Signed CA

FreeIPA server

PKI

certmonger

certmonger

certmonger

CN=host1.example.com,O=EXAMPLE.COM

CN=host2.example.com,O=EXAMPLE.COM

CN=host3.example.com,O=EXAMPLE.COM

CN=Certificate Authority,O=EXAMPLE.COM

External CA

CN=CA,O=My Organization

certmonger

CN=idm.example.com,O=EXAMPLE.COM

Page 13: Blending FreeIPA in a Certificate Infrastructure...3 FreeIPA 3.3 Training Series FreeIPA and PKI (2) FreeIPA server LDAP PKI KDC HTTP DNS CLI/UI certmonger NTP certificates certmonger

13 FreeIPA 3.3 Training Series

FreeIPA Externally Signed CA Install (1)

● To install first master:● Run ipa-server-install to get FreeIPA CA certificate

request:

– This will produce a certificate request in /root/ipa.csr● Get the certificate request signed by the external CA

– User is in charge of requesting the certificate● Run ipa-server-install to complete the installation:

– The ca.pem file contains the external CA certificate chain

ipa-server-install --external-ca

ipa-server-install --external_cert_file /path/to/ipa.pem --external_ca_file /path/to/ca.pem

Page 14: Blending FreeIPA in a Certificate Infrastructure...3 FreeIPA 3.3 Training Series FreeIPA and PKI (2) FreeIPA server LDAP PKI KDC HTTP DNS CLI/UI certmonger NTP certificates certmonger

14 FreeIPA 3.3 Training Series

FreeIPA Externally Signed CA Install (2)

● To prepare replica, run ipa-replica-prepare without any special options:

● To install replica, run ipa-replica-install without any special options:

ipa-replica-prepare replica.example.com

ipa-replica-install replica-info-replica.example.com.gpg

Page 15: Blending FreeIPA in a Certificate Infrastructure...3 FreeIPA 3.3 Training Series FreeIPA and PKI (2) FreeIPA server LDAP PKI KDC HTTP DNS CLI/UI certmonger NTP certificates certmonger

FreeIPA 3.3 Training SeriesFreeIPA 3.3 Training Series

FreeIPA CA-less

Page 16: Blending FreeIPA in a Certificate Infrastructure...3 FreeIPA 3.3 Training Series FreeIPA and PKI (2) FreeIPA server LDAP PKI KDC HTTP DNS CLI/UI certmonger NTP certificates certmonger

16 FreeIPA 3.3 Training Series

FreeIPA CA-less (1)

FreeIPA server

CN=host1.example.com,O=My Organization

CN=host2.example.com,O=My Organization

CN=host3.example.com,O=My Organization

External CA

CN=CA,O=My Organization

CN=idm.example.com,O=My Organization

Page 17: Blending FreeIPA in a Certificate Infrastructure...3 FreeIPA 3.3 Training Series FreeIPA and PKI (2) FreeIPA server LDAP PKI KDC HTTP DNS CLI/UI certmonger NTP certificates certmonger

17 FreeIPA 3.3 Training Series

FreeIPA CA-less (2)

● User is in charge of renewing certificates● Certmonger is not automatically configured during

install

● Certmonger has support for other CAs besides FreeIPA● It can be manually configured to handle certificate

renewal on supported CAs

Page 18: Blending FreeIPA in a Certificate Infrastructure...3 FreeIPA 3.3 Training Series FreeIPA and PKI (2) FreeIPA server LDAP PKI KDC HTTP DNS CLI/UI certmonger NTP certificates certmonger

18 FreeIPA 3.3 Training Series

Preparation of server certificates

● In CA-less install, user is in charge of providing FreeIPA server certificates● Usually the user will request certificates from their

company's CA

● FreeIPA expects a PKCS#12 file with the certificate and private key and a PEM file containing the CA certificate chain● Different certificate and private key may be used for

HTTP and LDAP● The CA must be the same for all servers

Page 19: Blending FreeIPA in a Certificate Infrastructure...3 FreeIPA 3.3 Training Series FreeIPA and PKI (2) FreeIPA server LDAP PKI KDC HTTP DNS CLI/UI certmonger NTP certificates certmonger

19 FreeIPA 3.3 Training Series

FreeIPA CA-less install (1)

● To install first master:

1. Prepare certificates for the server

2. Run ipa-server-install:

ipa-server-install --dirsrv_pkcs12 server.p12 --http_pkcs12 server.p12 --root-ca-file ca.pem

Page 20: Blending FreeIPA in a Certificate Infrastructure...3 FreeIPA 3.3 Training Series FreeIPA and PKI (2) FreeIPA server LDAP PKI KDC HTTP DNS CLI/UI certmonger NTP certificates certmonger

20 FreeIPA 3.3 Training Series

FreeIPA CA-less install (2)

● To prepare replica:

1. Prepare certificates for the server

2. Run ipa-replica-prepare:

● To install replica, run ipa-replica-install without any special options:ipa-replica-install replica-info-replica.example.com.gpg

ipa-replica-prepare replica.example.com --dirsrv_pkcs12 replica.p12 --http_pkcs12 replica.p12

Page 21: Blending FreeIPA in a Certificate Infrastructure...3 FreeIPA 3.3 Training Series FreeIPA and PKI (2) FreeIPA server LDAP PKI KDC HTTP DNS CLI/UI certmonger NTP certificates certmonger