Advertisement
Guest User

Untitled

a guest
Feb 21st, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDHn/hfvTLRXViBXTmBhNYEIJeGGGDkmrYBxCRelriLEYEcrwWrzp0au9nEISpjMlXeEW4+T82bCM22+JUXZpIga5qdBrPkjU08Ktf5n7Nsd7n9ZeI0YoAKCub3ulVExcxGeS3RVxFai9ozERlavpoTOdUzEH6YWHP4reFfpMpLzwIDAQAB
  2.  
  3. #!/bin/bash
  4.  
  5. # Loop through all the certs in the current folder that have the .cer extension
  6. for cert in *.cer
  7. do
  8.  
  9. #get filename wihtout ext
  10. filename="${cert%.*}"
  11. #echo ${filename}
  12.  
  13. #convert to PEM
  14. openssl x509 -inform der -in ${cert} -outform pem -out ${filename}.crt
  15.  
  16. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement