Hi,

I have seen a code with a comment "*//TODO: if ssl change to https*"
line(106) in OpenEJBHttpServer.java under openejb-http module.

I got this doubt because when creating the socketUri only "http" is used,
final URI socketURI = new URI("http://"; +
socket.getLocalAddress().getHostAddress() + ":" + socket.getLocalPort());

Is it something need to be fixed.




On Sun, Dec 8, 2013 at 6:48 PM, Romain Manni-Bucau <rmannibu...@gmail.com>wrote:

> Hi
>
> seems correct, and yes you need to use standard jvm property to setup
> the trustore etc
> (
> http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/SSLSocketFactory.html#getDefault()
> )
> Romain Manni-Bucau
> Twitter: @rmannibucau
> Blog: http://rmannibucau.wordpress.com/
> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> Github: https://github.com/rmannibucau
>
>
>
> 2013/12/8 Radhakrishna Kalyan <nrkkal...@gmail.com>:
> > You mean to say
> >
> >
> properties.setProperty("httpejbd.enabledCipherSuites","SSL_RSA_WITH_RC4_128_SHA,SSL_DH_anon_WITH_3DES_EDE_CBC_SHA,SSL_DH_anon_WITH_RC4_128_MD5");
> >
> > I have used it. But still the same error
> > "javax.net.ssl.SSLHandshakeException: no cipher suites in common"
> > Do I need to create any kind of SSL certificate as well using keytool
> etc...
> >
> > I am trying to access the REST resource over the following url
> > https://127.0.0.1:*9998*/OpenEjbSample/ping
> >
> > but I am not sure if I am using the correct port to connect. as the port
> *9998
> > *is configured for httpejbd.port.
> >
> >
> >
> >
> >
> >
> > On Sun, Dec 8, 2013 at 4:43 PM, Romain Manni-Bucau <
> rmannibu...@gmail.com>wrote:
> >
> >> httpejbd.enable.... for cipher suites. Always use the prefix
> >> Le 8 déc. 2013 16:11, "Radhakrishna Kalyan" <nrkkal...@gmail.com> a
> écrit
> >> :
> >>
> >> > Hi,
> >> >
> >> > I would like to know where I am doing wrong in my configuration while
> >> > starting OpenEJB in standalone mode with SSL.
> >> >
> >> >  Properties properties = new Properties();
> >> >             properties.put(EJBContainer.
> >> > APP_NAME, "OpenEjbSample");
> >> >             properties.setProperty("httpejbd.port", "9998");
> >> >             properties.setProperty("httpejbd.secure", "true");
> >> >             properties.setProperty("enabledCipherSuites",
> >> >
> >> > "SSL_RSA_WITH_RC4_128_SHA,SSL_DH_anon_WITH_3DES_EDE_CBC_SHA");
> >> >             properties.setProperty("ejbds.secure", "true");
> >> >
> >> > properties.setProperty(OpenEjbContainer.OPENEJB_EMBEDDED_REMOTABLE,
> >> > "true");
> >> >
> >> >
> EJBContainer.createEJBContainer(properties).getContext().bind("inject",
> >> > this);
> >> >
> >> > Please let me know if I am missing anything further.
> >> >
> >> > Kalyan
> >> >
> >> >
> >> >
> >> >
> >> > On Sun, Dec 8, 2013 at 11:42 AM, Radhakrishna Kalyan <
> >> nrkkal...@gmail.com
> >> > >wrote:
> >> >
> >> > > Hi,
> >> > >
> >> > > Yes I followed as you explained in
> >> > >
> >> > >
> >> >
> >>
> http://openejb.979440.n4.nabble.com/ejb-standalone-server-rest-over-https-td4664091.html
> >> > >
> >> > > but I too got the following
> >> > > SEVERE: BAD REQUEST
> >> > > java.io.IOException: Could not read the HTTP Request Line
> >> > > :javax.net.ssl.SSLHandshakeException : no cipher suites in common
> >> > >     at
> >> > >
> >> >
> >>
> org.apache.openejb.server.httpd.HttpRequestImpl.readRequestLine(HttpRequestImpl.java:391)
> >> > >     at
> >> > >
> >> >
> >>
> org.apache.openejb.server.httpd.HttpRequestImpl.readMessage(HttpRequestImpl.java:337)
> >> > >     at
> >> > >
> >> >
> >>
> org.apache.openejb.server.httpd.OpenEJBHttpServer.process(OpenEJBHttpServer.java:217)
> >> > >     at
> >> > >
> >> >
> >>
> org.apache.openejb.server.httpd.OpenEJBHttpServer.processRequest(OpenEJBHttpServer.java:193)
> >> > >
> >> > >
> >> > > I tried to use the following as settings
> >> > >
> >> > >  Properties properties = new Properties();
> >> > >             properties.put(EJBContainer.APP_NAME, "OpenEjbSample");
> >> > >             properties.setProperty("httpejbd.port", "9998");
> >> > >             properties.setProperty("httpejbd.secure", "true");
> >> > >             properties.setProperty("enabledCipherSuites",
> >> > >
> >> > > "SSL_RSA_WITH_RC4_128_SHA,SSL_DH_anon_WITH_3DES_EDE_CBC_SHA");
> >> > >             properties.setProperty("ejbds.secure", "true");
> >> > >
> >> > > properties.setProperty(OpenEjbContainer.OPENEJB_EMBEDDED_REMOTABLE,
> >> > "true");
> >> > >
> >> > >
> EJBContainer.createEJBContainer(properties).getContext().bind("inject",
> >> > > this);
> >> > >
> >> > > Kalyan
> >> > >
> >> > >
> >> > > On Sun, Dec 8, 2013 at 10:54 AM, Romain Manni-Bucau <
> >> > rmannibu...@gmail.com
> >> > > > wrote:
> >> > >
> >> > >> Did you try httpejbd.secure?
> >> > >> Le 8 déc. 2013 02:02, "Radhakrishna Kalyan" <nrkkal...@gmail.com>
> a
> >> > >> écrit :
> >> > >>
> >> > >> > Hi
> >> > >> >
> >> > >> > I am trying to create a rest application using openejb.
> >> > >> > I can able to call my rest endpoints successfully as below
> >> > >> > *http://127.0.0.1:9998/OpenEjbSample/ping
> >> > >> > <http://127.0.0.1:9998/OpenEjbSample/ping>*
> >> > >> > However I want to know how can I able access the same over
> *https*,I
> >> > >> saw in
> >> > >> > the documentation something about *ejbds* is in openejb and its
> >> > >> equivalent
> >> > >> > is https in tomee.  But I don't want to use tomee application
> >> server.
> >> > I
> >> > >> > want to perform the same from a standalone java application from
> >> > public
> >> > >> > static void main(String[]..).
> >> > >> > Is there something I am missing.
> >> > >> >
> >> > >> > Please let me know which kind of settings do I need to use in my
> >> > >> > application.
> >> > >> > Currently I am using '*properties.setProperty("ejbds.secure",
> >> > "true")*'
> >> > >> and
> >> > >> > I think its wrong in my case.
> >> > >> >
> >> > >> >
> >> > >> >
> >> > >> >
> >> > >> > --
> >> > >> > Thanks and Regards
> >> > >> > N Radhakrishna Kalyan
> >> > >> >
> >> > >> > P:  +46 733 312 584
> >> > >> > http://about.me/nrkkalyan
> >> > >> >  <http://about.me/nrkkalyan>
> >> > >> >
> >> > >>
> >> > >
> >> > >
> >> > >
> >> > > --
> >> > > Thanks and Regards
> >> > > N Radhakrishna Kalyan
> >> > >
> >> > > P:  +46 733 312 584
> >> > > http://about.me/nrkkalyan
> >> > >  <http://about.me/nrkkalyan>
> >> > >
> >> >
> >> >
> >> >
> >> > --
> >> > Thanks and Regards
> >> > N Radhakrishna Kalyan
> >> >
> >> > P:  +46 733 312 584
> >> > http://about.me/nrkkalyan
> >> >  <http://about.me/nrkkalyan>
> >> >
> >>
> >
> >
> >
> > --
> > Thanks and Regards
> > N Radhakrishna Kalyan
> >
> > P:  +46 733 312 584
> > http://about.me/nrkkalyan
> >  <http://about.me/nrkkalyan>
>



-- 
Thanks and Regards
N Radhakrishna Kalyan

P:  +46 733 312 584
http://about.me/nrkkalyan
 <http://about.me/nrkkalyan>

Reply via email to