Skip to content

Instantly share code, notes, and snippets.

@utamadonny
Last active October 18, 2024 18:36
Show Gist options
  • Save utamadonny/c5735433bd2e71a2ea3ebf79ccecfc8d to your computer and use it in GitHub Desktop.
Save utamadonny/c5735433bd2e71a2ea3ebf79ccecfc8d to your computer and use it in GitHub Desktop.
How to create LibreOffice X.509 Digial Signature using OpenSSL (Ubuntu 20.04 LTS)
  1. 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
  1. make .p12 from key and cert
openssl pkcs12 -export -out identity.p12 -inkey mykey.pem -in cert.pem
  1. 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

  2. Certificate ready to use in LibreOffice

@idc77
Copy link

idc77 commented Mar 15, 2024

when you do ed25519 instead of rsa:2048 it fails

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment