Hi, Task has being done. I have attached the patch files in the JIRA issue. please review it.
https://wso2.org/jira/browse/CARBON-14081 thank you Best Regards.. Manoj Kumara Software Engineer WSO2, Inc.; http://wso2.com Twitter: http://twitter.com/ManKuma Mobile: +94713448188 On Fri, Mar 22, 2013 at 1:32 PM, Pradeep Fernando <[email protected]> wrote: > Hi manoj, > > Please explore the possibility of using code snippets found in key store > manager... > > We don't need the full set of capabilities of key store manager - we don't > want to validate tenant aspects. > > Since the code get executed during boot up validation phase, you only have > the server config service. > > --Pradeep > sent from my phone > On Mar 22, 2013 11:27 AM, "Ananda Manoj Kumara" <[email protected]> wrote: > >> Hi, >> >> To access the keystore I have to get an instance of KeyStoreManager >> class. KeyStoreManager requre 3 arguments >> >> 1) tenantId >> 2) ServerConfigurationService instance >> 3) RegistryService instance >> >> I tried to get the instance during system validation in SystemValidator >> since I need to validate the keystore during this process. but on that >> stage RegistryService instance is not created. So I tried to validate the >> keystore in a place after RegistryService instance have instantiated but at >> this moment application is already started. >> >> I need to validate the keystore before application carbon application >> starts. >> It will be great if some one can help. >> >> Best Regards.. >> >> >> Manoj Kumara >> Software Engineer >> WSO2, Inc.; http://wso2.com >> >> Twitter: http://twitter.com/ManKuma >> Mobile: +94713448188 >> >> >> On Tue, Mar 19, 2013 at 5:42 PM, Hasini Gunasinghe <[email protected]>wrote: >> >>> Hi Ananda, >>> >>> Default keystore is wso2carbon.jks. But it is not appropriate to check >>> just the keystore name, because someone can create their own keystore with >>> the same name. One thing you can consider is, obtain the public certificate >>> associated with the private key of the default keystore, read the CN value >>> and check if it is the same as in public cert in the default keystore. >>> >>> Thanks, >>> Hasini. >>> >>> On Tue, Mar 19, 2013 at 4:45 PM, Ananda Manoj Kumara <[email protected]>wrote: >>> >>>> hi, >>>> >>>> currently I'm trying to add a warning at the carbon server start-up to >>>> check wether the custemer using the default JKS. If so need to notify the >>>> customer about security risks when default keystore is used. so during >>>> application start I need to check what keystore is used. >>>> >>>> thank you >>>> >>>> Best Regards.. >>>> >>>> >>>> Manoj Kumara >>>> Software Engineer >>>> WSO2, Inc.; http://wso2.com >>>> >>>> Twitter: http://twitter.com/ManKuma >>>> Mobile: +94713448188 >>>> >>>> >>>> On Tue, Mar 19, 2013 at 3:56 PM, Ananda Manoj Kumara <[email protected]>wrote: >>>> >>>>> Hi, >>>>> >>>>> I need to check which keystore is used on the carbon application at >>>>> runtime. How can I get that property. >>>>> >>>>> >>>>> >>>>> >>>>> Best Regards.. >>>>> >>>>> >>>>> Manoj Kumara >>>>> Software Engineer >>>>> WSO2, Inc.; http://wso2.com >>>>> >>>>> Twitter: http://twitter.com/ManKuma >>>>> Mobile: +94713448188 >>>>> >>>> >>>> >>>> _______________________________________________ >>>> Dev mailing list >>>> [email protected] >>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>> >>>> >>> >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >>
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
