Hi,
I have a problem with the "JWTPrivateKey" Parameter in my WebConfig File (using WebDeploy 3.6). The "redirectURL" Parameter works fine.
In web.config I have:
<configuration>
<appSettings>
<add key="redirectUrl" value="https://url.de" />
<add key="JwtPrivateKey" value="<RSAKeyValue>SecureKey;/RSAKeyValue>" />
</appSettings>
</configuration>
Parameters.xml:
<parameter name="redirectUrl" description="Desc" defaultValue="https://Website.de">
<parameterEntry kind="XmlFile" scope="Web.config" match="/configuration/appSettings/add[@key='redirectUrl']/@value" />
</parameter>
<parameter name="JwtPrivateKey" description="JwtPrivateKey" defaultValue="<RSAKeyValue>TestKey;/RSAKeyValue>">
<parameterEntry kind="XmlFile" scope="Web.config" match="/configuration/appSettings/add[@key='JwtPrivateKey']/@value" />
</parameter>
SetParameters.xml:
<setParameter name="LusdForumURL" value="https://lusd-forum-url.berlin.de" />
<setParameter name="JwtPrivateKey" value="<RSAKeyValue><Modulus>SecureKey>" />
But this value is not set when the web application is deployed. When I change my SetParameters.xml to, it works:
<setParameter name="JwtPrivateKey" value=""<RSAKeyValue><Modulus>SecureKey>"" />
Any hints why the encoded xml value not set?
See also (similar problem):
https://stackoverflow.com/questions/44433931/msdeploy-not-replacing-encoded-xml-strings
Regards
Robin