How to use .cer on Linux
This article explains the instructions to use <windows>.cer file on Linux (ex. Ubuntu, Debian, etc.)
By EmOne
- Convert .cer to .pem
sudo openssl x509 -inform PEM -in <file>.cer -out <file>.pem
- Convert .pem to .crt
sudo openssl x509 -inform PEM -in <file>.pem -out <file>.crt
- Change privileged file access.
sudo chmod 755 <file>.crt
- Copy to ca-certification folder
sudo cp <file>.crt /etc/ssl/certs/
- OR
sudo cp <file>.crt /usr/local/share/ca-certificates/
- Update system ca-certification
sudo update-ca-certificates
You must be logged in to post a comment.