---
title: "k3s et le certificat traefik par défaut"
summary: "Remplacer le certificat par défaut de traefik"
author:
  - JF
date: 2024-11-07
---
Exemple avec des certificats autosignés pour `corp.tld` .

#### corp.tld.crt 

```
-----BEGIN CERTIFICATE-----
MIIDUzCCAjugAwIBAgIJALhBac+eO1svMA0GCSqGSIb3DQEBCwUAMEAxCzAJBgNV
BAYTAkZSMQ8wDQYDVQQHDAZOYW50ZXMxDTALBgNVBAoMBENvcnAxETAPBgNVBAMM
CGNvcnAudGxkMB4XDTIyMTExNDE2MjEzOFoXDTMxMDEzMTE2MjEzOFowQDELMAkG
A1UEBhMCRlIxDzANBgNVBAcMBk5hbnRlczENMAsGA1UECgwEQ29ycDERMA8GA1UE
AwwIY29ycC50bGQwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC4Uazm
9tFsnpKFMtuRWKMGyx/V+sysHAXcgKg9BHfDgzL0M0f6AsqwoldYFGxGg7gqpZoo
O2scvoe0BnWJ3CsPe6KJPHCZRNNl1cOXgUrurKY/lVuS5K+IhBw8m+4EYkwwzU5F
NxKjk5VRZkFGnFoxe1TwpU7CgHGJvD2SQQR7PNEmMSSAHF6yWYNQrhB4hA16a21n
2S6ejFVPDRlsGyfkvws2uKtLQ50cVg6A9OQK7YqaY62pW4Q7LrE0dJDk2w45WG17
p2IjMMrBvUf+SOf63sld8vb1Wkdzp+eAmdQ885jjFUBWNeIF4u8DKHJYabgVt60q
PwCbt3ost/s+DfgbAgMBAAGjUDBOMB0GA1UdDgQWBBTSzwt8/DYaCcPqyf0UQO12
U/hJgjAfBgNVHSMEGDAWgBTSzwt8/DYaCcPqyf0UQO12U/hJgjAMBgNVHRMEBTAD
AQH/MA0GCSqGSIb3DQEBCwUAA4IBAQCqNg812c4qKAhDSy8yGPSs2NX0SYwdQqgr
DxDlFjB08ptWWZrWrR5yJfuSxkLLuCPQR8LVQv8SyG+OQ37ROgTRx6VjmzLmKEF9
HPtGJZD0NryzpeIOFjYZJ4Nz0zBa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q+yB5IVhWx3yMrhkRO4S/RbV+/
f6qNlMmltvEEQuBSXu5vXbpVz6ENAQirSazZV4f7n273METWKDui8mw9lPVurnDn
klcFEaBzU/U+RJzcCwWD1AYiVwKBgQDSB0mJkSe3Zvh8NpkKCned5Dh2tfqsulL8
ZXqdZsTm2HTqhFmxvoaxpKrdLxGmk7mhyO4/Zi2QQl18oF4WarJURxtONBvyLcmh
YXLEM8KY6GVRQDPjMUFcl3Xek8vqnM7VIKAP8SJKUhx0K/+Wq0jdaOIowbO/MBWE
DALzGrpl3QKBgAOBwvyM0AvWze83ojB9NDI6Ks4ziuLvEqCUbqfxLx+lx7HApWHP
zGFXzB2qxAY/CcGoCQWB6AkPLM7pFSiJFqF1JBypGWQGozfF8ZTdcq4qOopYbMk3
sjIGUsITwAitwTVSlXO6swPXEmmy4WJL/329w7JpKhfZvFUW+vQO2DWrAoGAW4Bh
QVXD/9sUlskSk5VL17X+A3n05Buo2906Nij3z7qt9R4EFbPz6qDa79H51qC1Vw66
/VP+tcK0B/+1/f4uAxmXg9Kf+jqIhY52+ZOzS/qzaVqXQHvNBhHWgEnTpTr7wU6d
bVSYo9hyHQquJ24oKI3xOeBp9vlz5jt1bYRPgOECgYEAxNAID4n2c16Di1jDuCKT
mb9IR+8dPmXJPvc1kP61zcDbjIOGdpA+YvXrUGFBu6p63eo7cDNry1F4ys2VSAJ2
+vnQDyWiKz2zUK1pMnopVMT+dGLOHxwgwA5ypi4Hg/taaTBpwkU7EplViYWOuev6
8wK6p1WuabrfNAcwSDadoUk=
-----END PRIVATE KEY-----
```

Conversion du certificat et de la clef en base64 : 

```bash
# base64 -w 0 corp.tld.crt
```
```
LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURVekNDQWp1Z0F3SUJBZ0lKQUxoQmFjK2VPMXN2TUEwR0NTcUdTSWIzRFFFQkN3VUFNRUF4Q3pBSkJnTlYKQkFZVEFrWlNNUTh3RFFZRFZRUUhEQVpPWVc1MFpYTXhE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SVR3QWl0d1RWU2xYTzZzd1BYRW1teTRXSkwvMzI5dzdKcEtoZlp2RlVXK3ZRTzJEV3JBb0dBVzRCaApRVlhELzlzVWxza1NrNVZMMTdYK0EzbjA1QnVvMjkwNk5pajN6N3F0OVI0RUZiUHo2cURhNzlINTFxQzFWdzY2Ci9WUCt0Y0swQi8rMS9mNHVBeG1YZzlLZitqcUloWTUyK1pPelMvcXphVnFYUUh2TkJoSFdnRW5UcFRyN3dVNmQKYlZTWW85aHlIUXF1SjI0b0tJM3hPZUJwOXZsejVqdDFiWVJQZ09FQ2dZRUF4TkFJRDRuMmMxNkRpMWpEdUNLVAptYjlJUis4ZFBtWEpQdmMxa1A2MXpjRGJqSU9HZHBBK1l2WHJVR0ZCdTZwNjNlbzdjRE5yeTFGNHlzMlZTQUoyCit2blFEeVdpS3oyelVLMXBNbm9wVk1UK2RHTE9IeHdnd0E1eXBpNEhnL3RhYVRCcHdrVTdFcGxWaVlXT3VldjYKOHdLNnAxV3VhYnJmTkFjd1NEYWRvVWs9Ci0tLS0tRU5EIFBSSVZBVEUgS0VZLS0tLS0K
```

### La configuration à appliquer dans k3s : 
```yaml
apiVersion: v1
kind: Secret
metadata:
  name: default
  namespace: default
type: Opaque
data:
  tls.crt: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURVekNDQWp1Z0F3SUJBZ0lKQUxoQmFjK2VPMXN2TUEwR0NTcUdTSWIzRFFFQkN3VUFNRUF4Q3pBSkJnTlYKQkFZVEFrWlNNUTh3RFFZRFZRUUhEQVpPWVc1MFpYTXhEVEFMQmdOVkJBb01CRU52Y25BeEVUQVBCZ05WQkFNTQpDR052Y25BdWRHeGtNQjRYRFRJeU1URXhOREUyTWpFek9Gb1hEVE14TURFek1URTJNakV6T0Zvd1FERUxNQWtHCkExVUVCaE1DUmxJeER6QU5CZ05WQkFjTUJrNWhiblJsY3pFTk1Bc0dBMVVFQ2d3RVEyOXljREVSTUE4R0ExVUUKQXd3SVkyOX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RyN3dVNmQKYlZTWW85aHlIUXF1SjI0b0tJM3hPZUJwOXZsejVqdDFiWVJQZ09FQ2dZRUF4TkFJRDRuMmMxNkRpMWpEdUNLVAptYjlJUis4ZFBtWEpQdmMxa1A2MXpjRGJqSU9HZHBBK1l2WHJVR0ZCdTZwNjNlbzdjRE5yeTFGNHlzMlZTQUoyCit2blFEeVdpS3oyelVLMXBNbm9wVk1UK2RHTE9IeHdnd0E1eXBpNEhnL3RhYVRCcHdrVTdFcGxWaVlXT3VldjYKOHdLNnAxV3VhYnJmTkFjd1NEYWRvVWs9Ci0tLS0tRU5EIFBSSVZBVEUgS0VZLS0tLS0K

---
apiVersion: traefik.io/v1alpha1
kind: TLSStore
metadata:
  name: default
  namespace: default
spec:
  defaultCertificate:
    secretName: default
```

* Peut appliqué manuellement avec la commande `kubectl` : 
```
kubectl apply -f tlsstore.yaml
```

* Ou bien on peut ajouter le fichier yaml directement dans le répertoire `/var/lib/rancher/k3s/server/manifests/`.
    * [Customizing Packaged Components with HelmChartConfig](https://docs.k3s.io/helm#customizing-packaged-components-with-helmchartconfig)