- Create key and cert
openssl req -x509 -newkey rsa:2048 -keyout mykey.pem -out cert.pem -days 365
or
openssl req -x509 -newkey rsa:2048 -keyout mykey.pem -out cert.pem -days 365 -nodes
- make .p12 from key and cert
openssl pkcs12 -export -out identity.p12 -inkey mykey.pem -in cert.pem
-
Import to Firefox (or chrome, any browser) more : https://askubuntu.com/questions/122058/how-do-i-make-a-digital-certificate-available-to-libreoffice-writer-for-digital Import .p12 to firefox certificate
-
Certificate ready to use in LibreOffice
when you do ed25519 instead of rsa:2048 it fails