Hi Madusanka,

I have written test cases[1] for encrypt H2DB password using ciphertool.sh
on AS.
I used the blog[2] which might help you to solve your issue.

[1]
https://github.com/wso2/product-as/blob/master/modules/integration/tests-integration/tests/src/test/java/org/wso2/appserver/integration/tests/ciphertool/H2DBPasswordEncryptionTestCase.java
[2]
http://charithaka.blogspot.com/2013/06/how-to-use-securevault-when-wso2-carbon.html

Thanks,
Iqbal

On Mon, Feb 23, 2015 at 12:28 PM, Madusanka Premaratne <madusan...@wso2.com>
wrote:

> Hi all,
> I tried to encrypt two passwords in api-manager.xml using the cipher-tool.
> But when I try with the command sh ciphertool.sh -Dconfigure, the entries
> in cipher-text.properties dissappers.
>
> I uncommented following two lines in cipher-tool.properties file,
>
> AuthManager.Password=api-manager.xml//APIManager/AuthManager/Password,true
>
> APIKeyManager.Password=api-manager.xml//APIManager/APIKeyManager/Password,true
>
>
> And added following two lines to the cipher-text.properties file,
>
> AuthManager.Password=[admin]
> APIKeyManager.Password=[admin]
>
>
> Also I changed <EnableSecureVault> to true in api-manager.xml
>
> Can anyone point out what I missed here?
>
> Thanks,
>
> --
> *Madusanka Premaratne* | Associate Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 835 70 73| Work: +94 112 145 345
> Email: madusan...@wso2.com | Web: www.wso2.com
>
> [image: Facebook] <https://www.facebook.com/rmmpremaratne> [image:
> Twitter] <https://twitter.com/rmmpremaratne> [image: Google Plus]
> <https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
> Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
> <http://instagram.com/madusankapremaratne> [image: Skype]
> <http://@rmmpremaratne>
>
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Irham Iqbal
Software Engineer - Test Automation
 WSO2, Inc.: http://wso2.com
lean. enterprise. middleware
phone: +94 777888452
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to