{"id":4868,"date":"2021-10-28T14:03:57","date_gmt":"2021-10-28T12:03:57","guid":{"rendered":"https:\/\/www.laurentmarot.fr\/wordpress\/?p=4868"},"modified":"2021-10-28T14:14:02","modified_gmt":"2021-10-28T12:14:02","slug":"elements-de-conf-pour-tp-tls","status":"publish","type":"post","link":"https:\/\/www.laurentmarot.fr\/wordpress\/?p=4868","title":{"rendered":"El\u00e9ments de conf pour TP TLS"},"content":{"rendered":"<p><strong>1- Etape 1 avec un certificat autosign\u00e9 :<\/strong><\/p>\n<p>root@debian:\/home\/ensibs# <span style=\"color: #0000ff;\">apt-get install apache2<br \/>\n<\/span><\/p>\n<p>Reading package lists&#8230; Done<\/p>\n<p>Building dependency tree&#8230; Done<\/p>\n<p>Reading state information&#8230; Done<\/p>\n<p>The following additional packages will be installed:<\/p>\n<p>apache2-data apache2-utils ssl-cert<\/p>\n<p>Suggested packages:<\/p>\n<p>apache2-doc apache2-suexec-pristine | apache2-suexec-custom<\/p>\n<p>The following NEW packages will be installed:<\/p>\n<p>apache2 apache2-data apache2-utils ssl-cert<\/p>\n<p>0 upgraded, 4 newly installed, 0 to remove and 1 not upgraded.<\/p>\n<p>Need to get 706 kB of archives.<\/p>\n<p>After this operation, 2,057 kB of additional disk space will be used.<\/p>\n<p>Do you want to continue? [Y\/n] Y<\/p>\n<p>Get:1 http:\/\/deb.debian.org\/debian bullseye\/main amd64 ssl-cert all 1.1.0+nmu1 [21.0 kB]<\/p>\n<p>Get:2 http:\/\/security.debian.org\/debian-security bullseye-security\/main amd64 apache2-data all 2.4.51-1~deb11u1 [160 kB]<\/p>\n<p>Get:3 http:\/\/security.debian.org\/debian-security bullseye-security\/main amd64 apache2-utils amd64 2.4.51-1~deb11u1 [255 kB]<\/p>\n<p>Get:4 http:\/\/security.debian.org\/debian-security bullseye-security\/main amd64 apache2 amd64 2.4.51-1~deb11u1 [270 kB]<\/p>\n<p>Fetched 706 kB in 1s (1,332 kB\/s)<\/p>\n<p>Preconfiguring packages &#8230;<\/p>\n<p>Selecting previously unselected package apache2-data.<\/p>\n<p>(Reading database &#8230; 162254 files and directories currently installed.)<\/p>\n<p>Preparing to unpack &#8230;\/apache2-data_2.4.51-1~deb11u1_all.deb &#8230;<\/p>\n<p>Unpacking apache2-data (2.4.51-1~deb11u1) &#8230;<\/p>\n<p>Selecting previously unselected package apache2-utils.<\/p>\n<p>Preparing to unpack &#8230;\/apache2-utils_2.4.51-1~deb11u1_amd64.deb &#8230;<\/p>\n<p>Unpacking apache2-utils (2.4.51-1~deb11u1) &#8230;<\/p>\n<p>Selecting previously unselected package apache2.<\/p>\n<p>Preparing to unpack &#8230;\/apache2_2.4.51-1~deb11u1_amd64.deb &#8230;<\/p>\n<p>Unpacking apache2 (2.4.51-1~deb11u1) &#8230;<\/p>\n<p>Selecting previously unselected package ssl-cert.<\/p>\n<p>Preparing to unpack &#8230;\/ssl-cert_1.1.0+nmu1_all.deb &#8230;<\/p>\n<p>Unpacking ssl-cert (1.1.0+nmu1) &#8230;<\/p>\n<p>Setting up ssl-cert (1.1.0+nmu1) &#8230;<\/p>\n<p>Setting up apache2-data (2.4.51-1~deb11u1) &#8230;<\/p>\n<p>Setting up apache2-utils (2.4.51-1~deb11u1) &#8230;<\/p>\n<p>Setting up apache2 (2.4.51-1~deb11u1) &#8230;<\/p>\n<p>Enabling module mpm_event.<\/p>\n<p>Enabling module authz_core.<\/p>\n<p>Enabling module authz_host.<\/p>\n<p>Enabling module authn_core.<\/p>\n<p>Enabling module auth_basic.<\/p>\n<p>Enabling module access_compat.<\/p>\n<p>Enabling module authn_file.<\/p>\n<p>Enabling module authz_user.<\/p>\n<p>Enabling module alias.<\/p>\n<p>Enabling module dir.<\/p>\n<p>Enabling module autoindex.<\/p>\n<p>Enabling module env.<\/p>\n<p>Enabling module mime.<\/p>\n<p>Enabling module negotiation.<\/p>\n<p>Enabling module setenvif.<\/p>\n<p>Enabling module filter.<\/p>\n<p>Enabling module deflate.<\/p>\n<p>Enabling module status.<\/p>\n<p>Enabling module reqtimeout.<\/p>\n<p>Enabling conf charset.<\/p>\n<p>Enabling conf localized-error-pages.<\/p>\n<p>Enabling conf other-vhosts-access-log.<\/p>\n<p>Enabling conf security.<\/p>\n<p>Enabling conf serve-cgi-bin.<\/p>\n<p>Enabling site 000-default.<\/p>\n<p>Created symlink \/etc\/systemd\/system\/multi-user.target.wants\/apache2.service \u2192 \/lib\/systemd\/system\/apache2.service.<\/p>\n<p>Created symlink \/etc\/systemd\/system\/multi-user.target.wants\/apache-htcacheclean.service \u2192 \/lib\/systemd\/system\/apache-htcacheclean.service.<\/p>\n<p>Processing triggers for man-db (2.9.4-2) &#8230;<\/p>\n<p>1: lo: &lt;LOOPBACK,UP,LOWER_UP&gt; mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000<\/p>\n<p>link\/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00<\/p>\n<p>inet 127.0.0.1\/8 scope host lo<\/p>\n<p>valid_lft forever preferred_lft forever<\/p>\n<p>inet6 ::1\/128 scope host<\/p>\n<p>valid_lft forever preferred_lft forever<\/p>\n<p>2: enp0s3: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc pfifo_fast state UP group default qlen 1000<\/p>\n<p>link\/ether 08:00:27:0c:52:89 brd ff:ff:ff:ff:ff:ff<\/p>\n<p>inet 192.168.56.101\/24 brd 192.168.56.255 scope global dynamic noprefixroute enp0s3<\/p>\n<p>valid_lft 589sec preferred_lft 589sec<\/p>\n<p>inet6 fe80::a00:27ff:fe0c:5289\/64 scope link noprefixroute<\/p>\n<p>valid_lft forever preferred_lft forever<\/p>\n<p>&nbsp;<\/p>\n<p>root@debian:\/home\/ensibs# cd \/var\/lib\/apache2\/<\/p>\n<p>root@debian:\/var\/lib\/apache2# ls<\/p>\n<p>conf module site<\/p>\n<p>root@debian:\/var\/lib\/apache2# cd conf<\/p>\n<p>root@debian:\/etc\/apache2# ls<\/p>\n<p>apache2.conf conf-available conf-enabled envvars magic mods-available mods-enabled ports.conf sites-available sites-enabled<\/p>\n<p>root@debian:\/etc\/apache2# vi apache2.conf<\/p>\n<p>root@debian:\/etc\/apache2# cd mods-enabled\/<\/p>\n<p>root@debian:\/etc\/apache2\/mods-enabled# ls<\/p>\n<p>access_compat.load auth_basic.load authz_core.load autoindex.conf deflate.load env.load mime.load negotiation.conf reqtimeout.load status.conf<\/p>\n<p>alias.conf authn_core.load authz_host.load autoindex.load dir.conf filter.load mpm_event.conf negotiation.load setenvif.conf status.load<\/p>\n<p>alias.load authn_file.load authz_user.load deflate.conf dir.load mime.conf mpm_event.load reqtimeout.conf setenvif.load<\/p>\n<p>root@debian:\/etc\/apache2\/mods-enabled# cd ..<\/p>\n<p>root@debian:\/etc\/apache2# cd mods-available\/<\/p>\n<p>root@debian:\/etc\/apache2\/mods-available# ls<\/p>\n<p>access_compat.load authz_core.load cgi.load expires.load ldap.conf negotiation.load proxy_uwsgi.load socache_dbm.load<\/p>\n<p>actions.conf authz_dbd.load charset_lite.load ext_filter.load ldap.load proxy_ajp.load proxy_wstunnel.load socache_memcache.load<\/p>\n<p>actions.load authz_dbm.load data.load file_cache.load log_debug.load proxy_balancer.conf ratelimit.load socache_redis.load<\/p>\n<p>alias.conf authz_groupfile.load dav_fs.conf filter.load log_forensic.load proxy_balancer.load reflector.load socache_shmcb.load<\/p>\n<p>alias.load authz_host.load dav_fs.load headers.load lua.load proxy.conf remoteip.load speling.load<\/p>\n<p>allowmethods.load authz_owner.load dav.load heartbeat.load macro.load proxy_connect.load reqtimeout.conf ssl.conf<\/p>\n<p>asis.load authz_user.load dav_lock.load heartmonitor.load md.load proxy_express.load reqtimeout.load ssl.load<\/p>\n<p>auth_basic.load autoindex.conf dbd.load http2.conf mime.conf proxy_fcgi.load request.load status.conf<\/p>\n<p>auth_digest.load autoindex.load deflate.conf http2.load mime.load proxy_fdpass.load rewrite.load status.load<\/p>\n<p>auth_form.load brotli.load deflate.load ident.load mime_magic.conf proxy_ftp.conf sed.load substitute.load<\/p>\n<p>authn_anon.load buffer.load dialup.load imagemap.load mime_magic.load proxy_ftp.load session_cookie.load suexec.load<\/p>\n<p>authn_core.load cache_disk.conf dir.conf include.load mpm_event.conf proxy_hcheck.load session_crypto.load unique_id.load<\/p>\n<p>authn_dbd.load cache_disk.load dir.load info.conf mpm_event.load proxy_html.conf session_dbd.load userdir.conf<\/p>\n<p>authn_dbm.load cache.load dnssd.conf info.load mpm_prefork.conf proxy_html.load session.load userdir.load<\/p>\n<p>authn_file.load cache_socache.load dnssd.load lbmethod_bybusyness.load mpm_prefork.load proxy_http2.load setenvif.conf usertrack.load<\/p>\n<p>authn_socache.load cern_meta.load dump_io.load lbmethod_byrequests.load mpm_worker.conf proxy_http.load setenvif.load vhost_alias.load<\/p>\n<p>authnz_fcgi.load cgid.conf echo.load lbmethod_bytraffic.load mpm_worker.load proxy.load slotmem_plain.load xml2enc.load<\/p>\n<p>authnz_ldap.load cgid.load env.load lbmethod_heartbeat.load negotiation.conf proxy_scgi.load slotmem_shm.load<\/p>\n<p>root@debian:\/etc\/apache2\/mods-available# vi ssl.conf<\/p>\n<p>root@debian:\/etc\/apache2\/mods-available# cd ..<\/p>\n<p>root@debian:\/etc\/apache2# vi apache2.conf<\/p>\n<p>root@debian:\/etc\/apache2# <span style=\"color: #0000ff;\">a2enmod ssl<\/span><\/p>\n<p>Considering dependency setenvif for ssl:<\/p>\n<p>Module setenvif already enabled<\/p>\n<p>Considering dependency mime for ssl:<\/p>\n<p>Module mime already enabled<\/p>\n<p>Considering dependency socache_shmcb for ssl:<\/p>\n<p>Enabling module socache_shmcb.<\/p>\n<p>Enabling module ssl.<\/p>\n<p>See \/usr\/share\/doc\/apache2\/README.Debian.gz on how to configure SSL and create self-signed certificates.<\/p>\n<p>To activate the new configuration, you need to run:<\/p>\n<p>systemctl restart apache2<\/p>\n<p>root@debian:\/etc\/apache2# <span style=\"color: #0000ff;\">a2ensite default-ssl<\/span><\/p>\n<p>Enabling site default-ssl.<\/p>\n<p>To activate the new configuration, you need to run:<\/p>\n<p>systemctl reload apache2<\/p>\n<p>root@debian:\/etc\/apache2# service apache2 reload<\/p>\n<p>root@debian:\/etc\/apache2# mkdir tls<\/p>\n<p>root@debian:\/etc\/apache2# cd tls<\/p>\n<p>root@debian:\/etc\/apache2# ls<\/p>\n<p>apache2.conf conf-available conf-enabled envvars magic mods-available mods-enabled ports.conf sites-available sites-enabled tls<\/p>\n<p>root@debian:\/etc\/apache2# chmod 600 tls\/*.*<\/p>\n<p>root@debian:\/etc\/apache2# ls<\/p>\n<p>apache2.conf conf-available conf-enabled envvars magic mods-available mods-enabled ports.conf sites-available sites-enabled tls<\/p>\n<p>root@debian:\/etc\/apache2# cd sites-enabled\/<\/p>\n<p>root@debian:\/etc\/apache2\/sites-enabled# ls<\/p>\n<p>000-default.conf default-ssl.conf<\/p>\n<p>root@debian:\/etc\/apache2\/sites-enabled# vi default-ssl.conf<\/p>\n<p>root@debian:\/etc\/apache2\/sites-enabled# cd \/etc\/ssl<\/p>\n<p>root@debian:\/etc\/ssl# ls<\/p>\n<p>certs openssl.cnf private<\/p>\n<p>root@debian:\/etc\/ssl# ls -lart<\/p>\n<p>total 44<\/p>\n<p>-rw-r&#8211;r&#8211; 1 root root 11118 Aug 24 10:28 openssl.cnf<\/p>\n<p>drwxr-xr-x 4 root root 4096 Oct 19 14:52 .<\/p>\n<p>drwx&#8211;x&#8212; 2 root ssl-cert 4096 Oct 27 18:04 private<\/p>\n<p>drwxr-xr-x 2 root root 12288 Oct 27 18:04 certs<\/p>\n<p>drwxr-xr-x 119 root root 12288 Oct 27 18:21 ..<\/p>\n<p>root@debian:\/etc\/ssl# vi openssl.cnf<\/p>\n<p>root@debian:\/etc\/ssl# cd \/etc\/apache2\/tls\/<\/p>\n<p>root@debian:\/etc\/apache2\/tls# cd \/etc\/ssl<\/p>\n<p>root@debian:\/etc\/ssl# ls<\/p>\n<p>certs openssl.cnf private<\/p>\n<p>root@debian:\/etc\/ssl# less openssl.cnf<\/p>\n<p>root@debian:\/etc\/ssl#<\/p>\n<p>root@debian:\/etc\/ssl# vi openssl.cnf<\/p>\n<p>root@debian:\/etc\/ssl# cd \/etc\/apache2\/sites-enabled\/<\/p>\n<p>root@debian:\/etc\/apache2\/sites-enabled# ls<\/p>\n<p>000-default.conf default-ssl.conf<\/p>\n<p>root@debian:\/etc\/apache2\/sites-enabled# vi default-ssl.conf<\/p>\n<p>root@debian:\/etc\/apache2\/sites-enabled# <span style=\"color: #0000ff;\">service apache2 restart<\/span><\/p>\n<p>root@debian:\/etc\/apache2\/sites-enabled# cd ..<\/p>\n<p>root@debian:\/etc\/apache2# ls<\/p>\n<p>apache2.conf conf-available conf-enabled envvars magic mods-available mods-enabled ports.conf sites-available sites-enabled tls<\/p>\n<p>root@debian:\/etc\/apache2# vi apache2.conf<\/p>\n<p>root@debian:\/etc\/apache2# cd sites-enabled\/<\/p>\n<p>root@debian:\/etc\/apache2\/sites-enabled# ls<\/p>\n<p>000-default.conf default-ssl.conf<\/p>\n<p>root@debian:\/etc\/apache2\/sites-enabled# vi default-ssl.conf<\/p>\n<p>root@debian:\/etc\/apache2\/sites-enabled# service apache2 start<\/p>\n<p>root@debian:\/etc\/apache2\/sites-enabled# cd \/etc\/<\/p>\n<p>root@debian:\/etc# ls<\/p>\n<p>root@debian:\/etc# cd \/etc\/apache2\/tls<\/p>\n<p>root@debian:\/etc\/apache2\/tls# openssl genrsa 2048 &gt; web.key<\/p>\n<p>Generating RSA private key, 2048 bit long modulus (2 primes)<\/p>\n<p>&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..+++++<\/p>\n<p>&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..+++++<\/p>\n<p>e is 65537 (0x010001)<\/p>\n<p>root@debian:\/etc\/apache2\/tls# openssl req -new -key web.key &gt; web.csr<\/p>\n<p>You are about to be asked to enter information that will be incorporated<\/p>\n<p>into your certificate request.<\/p>\n<p>What you are about to enter is what is called a Distinguished Name or a DN.<\/p>\n<p>There are quite a few fields but you can leave some blank<\/p>\n<p>For some fields there will be a default value,<\/p>\n<p>If you enter &lsquo;.&rsquo;, the field will be left blank.<\/p>\n<p>&#8212;&#8211;<\/p>\n<p>Country Name (2 letter code) [AU]:FR<\/p>\n<p>State or Province Name (full name) [Some-State]:BZH<\/p>\n<p>Locality Name (eg, city) []:Lostihuel<\/p>\n<p>Organization Name (eg, company) [Internet Widgits Pty Ltd]:Minist\u00e8re d\u00e9sarm\u00e9<\/p>\n<p>Organizational Unit Name (eg, section) []:IT<\/p>\n<p>Common Name (e.g. server FQDN or YOUR name) []:127.0.0.1<\/p>\n<p>Email Address []:laurent@laurent.fr<\/p>\n<p>&nbsp;<\/p>\n<p>Please enter the following &lsquo;extra&rsquo; attributes<\/p>\n<p>to be sent with your certificate request<\/p>\n<p>A challenge password []:<\/p>\n<p>An optional company name []:<\/p>\n<p>root@debian:\/etc\/apache2\/tls# openssl genrsa 2048 &gt; ca.key<\/p>\n<p>Generating RSA private key, 2048 bit long modulus (2 primes)<\/p>\n<p>..+++++<\/p>\n<p>&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;+++++<\/p>\n<p>e is 65537 (0x010001)<\/p>\n<p>root@debian:\/etc\/apache2\/tls# openssl req -new -x509 -days 365 -key ca.key &gt; ca.crt<\/p>\n<p>You are about to be asked to enter information that will be incorporated<\/p>\n<p>into your certificate request.<\/p>\n<p>What you are about to enter is what is called a Distinguished Name or a DN.<\/p>\n<p>There are quite a few fields but you can leave some blank<\/p>\n<p>For some fields there will be a default value,<\/p>\n<p>If you enter &lsquo;.&rsquo;, the field will be left blank.<\/p>\n<p>&#8212;&#8211;<\/p>\n<p>Country Name (2 letter code) [AU]:FR<\/p>\n<p>State or Province Name (full name) [Some-State]:BZH<\/p>\n<p>Locality Name (eg, city) []:Lostihuel<\/p>\n<p>Organization Name (eg, company) [Internet Widgits Pty Ltd]:BZH CA<\/p>\n<p>Organizational Unit Name (eg, section) []:IT<\/p>\n<p>Common Name (e.g. server FQDN or YOUR name) []:BZH CA<\/p>\n<p>Email Address []:lm@lm.fr<\/p>\n<p>root@debian:\/etc\/apache2\/tls# openssl x509 -req -in web.csr -out web.crt -CA ca.crt -CAkey ca.key -CAcreateserial -CAserial ca.srl<\/p>\n<p>Signature ok<\/p>\n<p>subject=C = FR, ST = BZH, L = Lostihuel, O = Minist\\C3\\83\\C2\\A8re d\\C3\\83\\C2\\A9sarm\\C3\\83\\C2\\A9, OU = IT, CN = 127.0.0.1, emailAddress = laurent@laurent.fr<\/p>\n<p>Getting CA Private Key<\/p>\n<p>root@debian:\/etc\/apache2\/tls# ls -lart<\/p>\n<p>total 40<\/p>\n<p>-rw&#8212;&#8212;- 1 root root 948 Oct 27 18:40 servwiki.crt<\/p>\n<p>-rw-r&#8211;r&#8211; 1 root root 887 Oct 28 11:12 macle.key<\/p>\n<p>drwxr-xr-x 9 root root 4096 Oct 28 11:35 ..<\/p>\n<p>-rw-r&#8211;r&#8211; 1 root root 1679 Oct 28 11:55 web.key<\/p>\n<p>-rw-r&#8211;r&#8211; 1 root root 1070 Oct 28 11:58 web.csr<\/p>\n<p>-rw&#8212;&#8212;- 1 root root 1675 Oct 28 12:04 ca.key<\/p>\n<p>-rw-r&#8211;r&#8211; 1 root root 1383 Oct 28 12:06 ca.crt<\/p>\n<p>-rw-r&#8211;r&#8211; 1 root root 1306 Oct 28 12:07 web.crt<\/p>\n<p>-rw-r&#8211;r&#8211; 1 root root 41 Oct 28 12:07 ca.srl<\/p>\n<p>root@debian:\/etc\/apache2\/tls# chmod 600 web.*<\/p>\n<p>root@debian:\/etc\/apache2\/tls# ls -lart<\/p>\n<p>total 40<\/p>\n<p>-rw&#8212;&#8212;- 1 root root 948 Oct 27 18:40 servwiki.crt<\/p>\n<p>-rw-r&#8211;r&#8211; 1 root root 887 Oct 28 11:12 macle.key<\/p>\n<p>drwxr-xr-x 9 root root 4096 Oct 28 11:35 ..<\/p>\n<p>-rw&#8212;&#8212;- 1 root root 1679 Oct 28 11:55 web.key<\/p>\n<p>-rw&#8212;&#8212;- 1 root root 1070 Oct 28 11:58 web.csr<\/p>\n<p>-rw&#8212;&#8212;- 1 root root 1675 Oct 28 12:04 ca.key<\/p>\n<p>-rw-r&#8211;r&#8211; 1 root root 1383 Oct 28 12:06 ca.crt<\/p>\n<p>-rw&#8212;&#8212;- 1 root root 1306 Oct 28 12:07 web.crt<\/p>\n<p>-rw-r&#8211;r&#8211; 1 root root 41 Oct 28 12:07 ca.srl<\/p>\n<p>drwxr-xr-x 2 root root 4096 Oct 28 12:07 .<\/p>\n<p>root@debian:\/etc\/apache2\/tls# rm servwiki.crt<\/p>\n<p>root@debian:\/etc\/apache2\/tls# rm macle.key<\/p>\n<p>root@debian:\/etc\/apache2\/tls# cd ..<\/p>\n<p>root@debian:\/etc\/apache2# ls<\/p>\n<p>apache2.conf conf-available conf-enabled envvars magic mods-available mods-enabled ports.conf sites-available sites-enabled tls<\/p>\n<p>root@debian:\/etc\/apache2# cd sites-enabled\/<\/p>\n<p>root@debian:\/etc\/apache2\/sites-enabled# ls<\/p>\n<p>000-default.conf default-ssl.conf<\/p>\n<p>root@debian:\/etc\/apache2\/sites-enabled# vi default-ssl.conf<\/p>\n<p>root@debian:\/etc\/apache2\/sites-enabled# service apache2 restart<\/p>\n<p>&nbsp;<\/p>\n<p><strong>2 &#8211; Etape 2 avec un certificat sign\u00e9 par let&rsquo;s encrypt<br \/>\n<\/strong><\/p>\n<p>C&rsquo;est plus compliqu\u00e9 car votre serveur doit avoir un nom de domaine que Let&rsquo;s encrypt v\u00e9rifiera (bref ne pr\u00e9sente pas d&rsquo;int\u00e9r\u00eat dans le cadre de la d\u00e9couverte de TLS)<\/p>\n\n","protected":false},"excerpt":{"rendered":"<p>1- Etape 1 avec un certificat autosign\u00e9 : root@debian:\/home\/ensibs# apt-get install apache2 Reading package lists&#8230; Done Building dependency tree&#8230; Done Reading state information&#8230; Done The following additional packages will be installed: apache2-data apache2-utils ssl-cert Suggested packages: apache2-doc apache2-suexec-pristine | apache2-suexec-custom The following NEW packages will be installed: apache2 apache2-data apache2-utils ssl-cert 0 upgraded, 4 newly [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[39,13],"tags":[],"_links":{"self":[{"href":"https:\/\/www.laurentmarot.fr\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/4868"}],"collection":[{"href":"https:\/\/www.laurentmarot.fr\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.laurentmarot.fr\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.laurentmarot.fr\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.laurentmarot.fr\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4868"}],"version-history":[{"count":4,"href":"https:\/\/www.laurentmarot.fr\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/4868\/revisions"}],"predecessor-version":[{"id":4872,"href":"https:\/\/www.laurentmarot.fr\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/4868\/revisions\/4872"}],"wp:attachment":[{"href":"https:\/\/www.laurentmarot.fr\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4868"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.laurentmarot.fr\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4868"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.laurentmarot.fr\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4868"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}