Note: Since I believe that
sudo it's evil (contact me fore more info about it) I'm not going to assume that all the commands are run as
root, ese at your own risk. Remember, with great powers...
Generate CA Certificate
In this part we will egnerate the key and the certificate for the CA, that are going to be used asto issue the device certificates.
Step 0. Move in a secure location:
#: mkdir /root/certs/CA && cd /root/certs/CA
Step 1. Gen. CA Key:
#: openssl genrsa -des3 -out rootCA.key 2048