Difference between revisions of "Self-signed certificates"
Jump to navigation
Jump to search
(Created page with "= Creating self signed certificates (test on NanoPC-T2) =") |
|||
Line 1: | Line 1: | ||
= Creating self signed certificates (test on NanoPC-T2) = | = Creating self signed certificates (test on NanoPC-T2) = | ||
+ | |||
+ | 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 | ||
+ | |||
+ | x |
Revision as of 12:36, 26 August 2022
Creating self signed certificates (test on NanoPC-T2)
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
x