Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

[AEM Gems Webinar] Accelerating Experience Manager as a Cloud Service development with Rapid Development Environments

Cannot import XML values that has been protected (/system/console/crypto)


Level 7

So I encrypted a text using this page: http://localhost:4502/system/console/crypto

I then copy/paste the protected text to an OSGI Service config XML

<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="" xmlns:jcr=""

Note: The protected value I used in this XML above is fake. This is only an example.

When I import my code package into AEM, my.protected.text1 is empty/blank. If I change the value in the XML to something like "qwerty". The value gets imported.

Any ideas what I'm doing wrong?


3 Replies


Community Advisor

Could you share your code to understand what exactly is happening?

Check if you see any warning/error in error.log?


Level 4

Hi Jay,

It is the isssue with XML parser (org.xml.sax.SAXException)

  1. <?xml version="1.0" encoding="UTF-8"?> 
  2. <jcr:root xmlns:sling="" xmlns:jcr="" 
  3.    jcr:primaryType="sling:OsgiConfig" 
  4.   my.protected.text1="sdsd834dfsdsfsdfsdfsdsfsdfsfsdfsdfdsfsdfs" 
  5. /> 

Remove the curly braces from both side of value of my.protected.text1 make it like "sdsd834dfsdsfsdfsdfsdsfsdfsfsdfsdfdsfsdfs" it will start working for you.

Please let me know if you still face any issue.


Sahil Garg