Eric Manley:
Hey, For the Practice test on Certificates-API, I cannot get the csr yaml to work. I’ve
created a akshay-csr.yaml that has the "request: " field present with ONE-space afterwards,
so that when the cat runs it appends the encoded csr file to the end of the yaml. I’ve also
tried:
cat akshay.csr |base64
cat akshay.csr |base64 |tr -d "\n"
In the above commands, I notice a difference in the output. The later’s (with tr) output is
a few characters shorter. Next, taking the output and VERY CAREFULLY copy/paste into the .yaml file (vi append).
Also, I’ve tried:
cat akshay.csr |base64 |tr -d "\n" | kubectl create -f akshay-csr.yaml
cat akshay.csr |base64 | kubectl create -f akshay-csr.yaml
For encoding .csr files into .yaml, do we need to remove carriage-return/line-feeds, (ie use tr -d “\n”)?