Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lithium/manage.sh "new-service " command error: "Error in $: Failed reading: unescaped control character. Expecting object value" #62

Open
blackhu opened this issue Mar 9, 2022 · 1 comment

Comments

@blackhu
Copy link

blackhu commented Mar 9, 2022

Step1 : sh manage.sh new-cert //generate rsa file
Step2: sh manage.sh new-service //create a service but response error,is:
{
"code": 400,
"label": "bad-request",
"message": "Error in $: Failed reading: unescaped control character. Expecting object value"
}

Bug: pubkey.pem is unescaped control character
Fix: awk 'NF {sub(/\r/, ""); printf "%s\n",$0;}' pubkey.pem > pubkey_line.pem

@SwarajRenghe
Copy link

This is what worked for me
awk 'NF {sub(/\r/, ""); printf "%s\\n",$0;}' pubkey.pem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants