wiki-how.md
... ...
@@ -32,4 +32,20 @@ $ cat /etc/udev/rules.d/62-onpower.rules
32 32
SUBSYSTEM=="power_supply",ENV{POWER_SUPPLY_ONLINE}=="1",RUN+="/usr/bin/powerprofilesctl set performance"
33 33
34 34
$ sudo udevadm control --reload-rules && sudo udevadm trigger
35
+```
36
+
37
+Add a missing certificate from an endpoint
38
+------------------------------------------
39
+
40
+```
41
+export ENDPOINT_HOSTNAME=registry.poc4.ecocenter.fr
42
+export ENDPOINT_PORT=443
43
+echo "" | openssl s_client -showcerts -prexit -connect "${ENDPOINT_HOSTNAME}:${ENDPOINT_PORT}" 2> /dev/null | sed -n -e '/BEGIN CERTIFICATE/,/END CERTIFICATE/ p' > /tmp/tmp.ca.crt
44
+# Verify Issuer...
45
+openssl x509 -in /tmp/tmp.ca.crt -text | grep Issuer
46
+```
47
+
48
+```
49
+sudo cp /tmp/tmp.ca.crt /etc/pki/ca-trust/source/anchors/
50
+sudo update-ca-trust
35 51
```
... ...
\ No newline at end of file