Difference between revisions of "Self-signed certificates"
Jump to navigation
Jump to search
Line 13: | Line 13: | ||
Generate public key | Generate public key | ||
− | + | openssl rsa -in key.pem -pubout -out public.pem |
Latest revision as of 12:40, 26 August 2022
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