无法在“应用程序设置”中添加其值包含换行符号的私钥变量 [英] Not able to add a variable which is a private key whose value contains new line characters in in Application Settings

查看:56
本文介绍了无法在“应用程序设置”中添加其值包含换行符号的私钥变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在容器中运行了一个azure web应用程序。在应用程序设置中有应用程序设置子部分,其中我添加了不同的变量。其中一个变量是私有RSA密钥,其中包含新的行字符。如果我在应用设置
中添加密钥则不会 接受它,我试图把钥匙放在双引号中,但我的程序不会正确处理它。新行字符如何用azure编码。有人可以澄清字符编码以及如何在azure和
中存储/处理特殊字符,请为此问题提出一些解决方案。

I have an azure web app running in a container. In the App Settings there is Application settings subsection where I add different variables. One of the variables is a private RSA key which has new line characters in it. If I add the key in the app settings it doesn't  accept it, I tried to put the key in double quotes but my program won't process it properly. How are new line characters encoded in azure. Can someone clarify character encoding and how special characters are stored/processed in azure and please suggest some solution for this problem.

推荐答案

我相信使用的编码应该是UTF-8。根据我的经验,这可能会根据使用的框架而有所不同。你可以验证它是否似乎是用UTF-8编码你的密钥吗?
I believe the encoding used should be UTF-8. From my experience, this can vary based on what framework is being used. Can you please verify if it appears to be encoding your key in UTF-8?


这篇关于无法在“应用程序设置”中添加其值包含换行符号的私钥变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆