I am passing private-key
as a gitlab
environment variable. But when I echo it, it is altered, it is not really in the format of:
-----BEGIN RSA PRIVATE KEY-----
xxxxxxx
-----END RSA PRIVATE KEY-----
So I think the solution must be to encode
it again and then decode
it with base64
How can I do this with bash
shell?
What I tried is:
encode ./private-key
bash6d -d ./private-key
I have the doubt that this is not the way. Can someone please help me?