Difference between revisions of "Self-signed certificates"
Jump to navigation
Jump to search
(Created page with "= Creating self signed certificates (test on NanoPC-T2) =") |
|||
(One intermediate revision by the same user not shown) | |||
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 | ||
+ | |||
+ | 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