Self-signed certificates

From wiki.ferrari.mo.it
Revision as of 12:40, 26 August 2022 by 62.173.173.193 (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Creating self signed certificates (test on NanoPC-T2)[edit]

Copy CA chain:

cp /etc/ssl/certs/ca-certificates.crt ./fullchain.pem

Create a self signed 10years long certificate:

openssl req -nodes -new -x509 -keyout key.pem -out cert.pem -days 3650 -subj "/CN=server-test"

where server-test is /etc/hostname

Generate public key

openssl rsa -in key.pem -pubout -out public.pem