I'am trying to write a small script to create an JSON File. I have to store SSL Certificates inside this json, so i have to convert the CRT/KEY file to the required format.
Is there a Solution to store the result of:
cat $domain.key | sed s/$/\\n/ | tr -d '\n'
inside an Variable (bash.script)
input_key=`cat $domain.key | sed s/$/\\n/ | tr -d '\n'`
Does not run the "sed" after the cat (-: