Managing CA and Certificates
GET /ca - Returns all CA POST /ca - Create a new CA GET /ca/:id - Returns information about a CA key PUT /ca/:id/verify - Verirfy a CA DELETE /ca/:id - Deletes a CA TODO: Renew a CA
GET /cert - Returns all Certificates POST /cert - Create a new Certificate GET /cert/:id - Returns a certificate public key DELETE /cert/:id - Deletes a certificate TODO: Renew a certificate
CA: Passphrase (4 to 1023 characters) Days of validity Subject Country State Location Organization Organizational Unit
openssl genrsa -aes256 -out ca.key 4096
openssl req -x509 -new -nodes -key ca.key -sha256 -days 1826 -out ca.crt -subj '/CN=test root CA/C=DE/ST=Berlin/L=Berlin/O=test'
openssl x509 -in ca.crt -text -noout
openssl verify -CAfile ca.crt ca.crt
openssl rsa -in ca.key -check
openssl x509 -inform der -in ca.crt -out ca.pem
openssl pkcs12 -export -out ca.pfx -inkey ca.key -in ca.crt -certfile ca.crt