# Généré des certificats via la PKI interne de mini_risotto ## Génération du certificate sur le serveur ### Sous Fedora ``` /etc/pki/ca-trust/source/anchors/ca_.crt /etc/pki/tls/certs/.crt /etc/pki/tls/private/.key ``` ### Les templates Dans le template ca_.crt : ``` %%get_chain(authority_cn=%%domain_name_eth0, authority_name="") ``` Dans le template .crt : ``` %%get_certificate(%%domain_name_eth0, '') ``` Dans le template .key : ``` %%get_private_key(%%domain_name_eth0, '') ``` ## Génération du certificat client ### Sous Fedora ``` /etc/pki/ca-trust/source/anchors/ca_.crt /etc/pki/tls/certs/.crt /etc/pki/tls/private/.key ``` ### La variable ``` DEFAULT_VALUE ``` ### Les templates Dans le template ca_.crt : ``` %%get_chain(authority_cn=, authority_name="") ``` Dans le template .crt : ``` %%get_certificate(cn=%%domain_name_eth0, authority_cn=, authority_name='', type="client") ``` Dans le template .key : ``` %%get_private_key(cn=%%domain_name_eth0, authority_cn=, authority_name='', type="client") ```