How to convert Certificate file from windows to Linux and How to import Certificate file on Linux ( It can use at kubernetes )

prerequisites

  1. I use Ubantu desktop bundle after install wsl2

Step to Convert Certificate file

  1. Convert .cer to .crt
openssl x509 -inform PEM -in <sorcefile.cer> -out <newfile.crt>
p.1 show result convert

OK

Step how to import Certificate file on Linux

  1. Copy file to Linux Certificate store (/usr/local/share/ca-certificates/)
cp yourfile.crt  /usr/local/share/ca-certificates/

2. Go to Destination Path

cd /usr/local/share/ca-certificates/

2. change permission certificate file

chmod 755 ADHQ5.crt

3. update Certificate

update-ca-certificates
p2. result after import certificate

OK. DONE!!

--

--