Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDHn/hfvTLRXViBXTmBhNYEIJeGGGDkmrYBxCRelriLEYEcrwWrzp0au9nEISpjMlXeEW4+T82bCM22+JUXZpIga5qdBrPkjU08Ktf5n7Nsd7n9ZeI0YoAKCub3ulVExcxGeS3RVxFai9ozERlavpoTOdUzEH6YWHP4reFfpMpLzwIDAQAB
- #!/bin/bash
- # Loop through all the certs in the current folder that have the .cer extension
- for cert in *.cer
- do
- #get filename wihtout ext
- filename="${cert%.*}"
- #echo ${filename}
- #convert to PEM
- openssl x509 -inform der -in ${cert} -outform pem -out ${filename}.crt
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement