THAILAND (HEAD OFFICE) & ESTONIA BRANCH

How to use .cer on Linux

How to use .cer on Linux

This article explains the instructions to use <windows>.cer file on Linux (ex. Ubuntu, Debian, etc.)

  1. Convert .cer to .pem
    • sudo openssl x509 -inform PEM -in <file>.cer -out <file>.pem
  2. Convert .pem to .crt
    • sudo openssl x509 -inform PEM -in <file>.pem -out <file>.crt
  3. Change privileged file access.
    • sudo chmod 755 <file>.crt
  4. Copy to ca-certification folder
    • sudo cp <file>.crt /etc/ssl/certs/
    • OR
    • sudo cp <file>.crt /usr/local/share/ca-certificates/
  5. Update system ca-certification
    • sudo update-ca-certificates
By EmOne