tech:notes_certs_root_ca
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| tech:notes_certs_root_ca [2025/03/24 15:06] – créée - modification externe 127.0.0.1 | tech:notes_certs_root_ca [2025/11/09 19:45] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | < | ||
| {{tag> | {{tag> | ||
| - | = Notes certs root CA | + | # Notes certs root CA |
| Voir : | Voir : | ||
| curl | curl | ||
| - | <code -> | + | ~~~ |
| $ strace -f --trace=%file curl https:// | $ strace -f --trace=%file curl https:// | ||
| openat(AT_FDCWD, | openat(AT_FDCWD, | ||
| Ligne 13: | Ligne 14: | ||
| openat(AT_FDCWD, | openat(AT_FDCWD, | ||
| openat(AT_FDCWD, | openat(AT_FDCWD, | ||
| - | </ | + | ~~~ |
| A voir si curl utilise la LIBNSS | A voir si curl utilise la LIBNSS | ||
| Test | Test | ||
| - | < | + | ~~~bash |
| curl -v -s --noproxy ' | curl -v -s --noproxy ' | ||
| - | </ | + | ~~~ |
| Afficher les CA sous Debian | Afficher les CA sous Debian | ||
| - | < | + | ~~~bash |
| awk -v cmd=' | awk -v cmd=' | ||
| - | </ | + | ~~~ |
| Afficher les CA sous RedHat | Afficher les CA sous RedHat | ||
| - | < | + | ~~~bash |
| awk -v cmd=' | awk -v cmd=' | ||
| - | </ | + | ~~~ |
| Vérifier les CA | Vérifier les CA | ||
| - | < | + | ~~~bash |
| - | echo | openssl s_client -connect localhost: | + | openssl s_client -connect localhost: |
| - | </code> | + | ~~~ |
| - | < | + | ~~~bash |
| trust list --filter=ca-anchors --purpose=server-auth |grep ACME -i -A2 -B3 | trust list --filter=ca-anchors --purpose=server-auth |grep ACME -i -A2 -B3 | ||
| - | </ | + | ~~~ |
| - | < | + | ~~~bash |
| find / | find / | ||
| Ligne 47: | Ligne 48: | ||
| cat / | cat / | ||
| csplit -z ca-bundle.crt /#/ ' | csplit -z ca-bundle.crt /#/ ' | ||
| - | </ | + | ~~~ |
| Liste blanche / noire | Liste blanche / noire | ||
| - | <code -> | + | ~~~ |
| # / | # / | ||
| # update-ca-trust | # update-ca-trust | ||
| - | </ | + | ~~~ |
| - | < | + | ~~~ |
| # trust dump --filter " | # trust dump --filter " | ||
| # update-ca-trust extract | # update-ca-trust extract | ||
| Ligne 68: | Ligne 69: | ||
| trust: blacklisted | trust: blacklisted | ||
| category: authority | category: authority | ||
| - | </ | + | ~~~ |
| | | ||
| Sauvegarde PKI RedHat | Sauvegarde PKI RedHat | ||
| - | < | + | ~~~bash |
| # Sauvegarde | # Sauvegarde | ||
| cp -a /etc/pki / | cp -a /etc/pki / | ||
| Ligne 77: | Ligne 78: | ||
| # Restore | # Restore | ||
| rsync -ax --delete / | rsync -ax --delete / | ||
| - | </ | + | ~~~ |
| Remove a CA certificate | Remove a CA certificate | ||
| - | < | + | ~~~bash |
| trust anchor --remove pkcs11: | trust anchor --remove pkcs11: | ||
| # ou | # ou | ||
| trust anchor --remove path.to/ | trust anchor --remove path.to/ | ||
| - | </ | + | ~~~ |
| or | or | ||
| - | < | + | ~~~bash |
| rm / | rm / | ||
| update-ca-trust | update-ca-trust | ||
| - | </ | + | ~~~ |
| - | === split the bundle into individual certificates | + | ### split the bundle into individual certificates |
| Source : https:// | Source : https:// | ||
| Cut bundle into individual files: | Cut bundle into individual files: | ||
| - | < | + | ~~~bash |
| csplit -z ca-bundle.crt /#/ ' | csplit -z ca-bundle.crt /#/ ' | ||
| - | </ | + | ~~~ |
| Remove blank lines: | Remove blank lines: | ||
| - | < | + | ~~~bash |
| sed -i '/ | sed -i '/ | ||
| - | </ | + | ~~~ |
| Rename files: | Rename files: | ||
| - | < | + | ~~~bash |
| for file in xx*; do mv $file $(head -n 1 $file | tr -d \#" | for file in xx*; do mv $file $(head -n 1 $file | tr -d \#" | ||
| - | </ | + | ~~~ |
| - | == Autres | ||
| - | < | + | ## Ajouter une CA |
| + | |||
| + | Voir : | ||
| + | * https:// | ||
| + | |||
| + | ~~~bash | ||
| + | curl http:// | ||
| + | |||
| + | update-ca-trust | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | |||
| + | ## Autres | ||
| + | |||
| + | |||
| + | ~~~ | ||
| # # rpm -ql ca-certificates | # # rpm -ql ca-certificates | ||
| # rpm -q --filesbypkg ca-certificates |awk '/ | # rpm -q --filesbypkg ca-certificates |awk '/ | ||
| / | / | ||
| / | / | ||
| - | </ | + | ~~~ |
tech/notes_certs_root_ca.1742825205.txt.gz · Dernière modification : de 127.0.0.1
