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
