You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by Radhakrishna Kalyan <nr...@gmail.com> on 2013/12/08 02:01:21 UTC

https in OpenEJB

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>

Re: https in OpenEJB

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Copy
http://svn.apache.org/repos/asf/tomee/tomee/trunk/server/openejb-http/src/main/resources/META-INF/org.apache.openejb.server.ServerService/httpejbdin
openejb classloader in
META-INF/org.apache.openejb.server.ServerService/httpejbds (adding a jar
with this file in openejb/lib is enough), add secure=true in the properties
and change the port.
Le 9 déc. 2013 09:09, "Nrkkalyan" <nr...@gmail.com> a écrit :

> Sorry to bother you with so many questions.
>
> But is it possible to setup so that we can have both http and https
> together. If yes then can you give some pointers about those setup
> configuration.
>
>
>
> Regards
> /Kalyan
> 0733312584
>
> PS: May have typos due to using mobile
>
> On 9 dec 2013, at 09:00, Romain Manni-Bucau <rm...@gmail.com> wrote:
>
> > Out of the box yes. Dont forget that's designed as a test feature.
> > Le 9 déc. 2013 08:51, "Nrkkalyan" <nr...@gmail.com> a écrit :
> >
> >> So is it like
> >> 1: We can have either http or https but not both http and https at the
> >> same time?
> >>
> >> Regards
> >> /Kalyan
> >> 0733312584
> >>
> >> PS: May have typos due to using mobile
> >>
> >> On 9 dec 2013, at 08:42, Romain Manni-Bucau <rm...@gmail.com>
> wrote:
> >>
> >>> Yes
> >>> Le 9 déc. 2013 04:48, "Nrkkalyan" <nr...@gmail.com> a écrit :
> >>>
> >>>> Then on which port does it listens for https. Will it be same as the
> >> http
> >>>> port?
> >>>>
> >>>>
> >>>>
> >>>> Regards
> >>>> /Kalyan
> >>>> 0733312584
> >>>>
> >>>> PS: May have typos due to using mobile
> >>>>
> >>>> On 8 dec 2013, at 23:24, Romain Manni-Bucau <rm...@gmail.com>
> >> wrote:
> >>>>
> >>>>> yes but doesn't mean we don't support https, just means you'll get
> >>>>> http instead of https using UriInfo for instance.
> >>>>> 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 <nr...@gmail.com>:
> >>>>>> 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 <
> >>>> rmannibucau@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 <nr...@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 <
> >>>>>>> rmannibucau@gmail.com>wrote:
> >>>>>>>>
> >>>>>>>>> httpejbd.enable.... for cipher suites. Always use the prefix
> >>>>>>>>> Le 8 déc. 2013 16:11, "Radhakrishna Kalyan" <nrkkalyan@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 <
> >>>>>>>>> nrkkalyan@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 <
> >>>>>>>>>> rmannibucau@gmail.com
> >>>>>>>>>>>> wrote:
> >>>>>>>>>>>
> >>>>>>>>>>>> Did you try httpejbd.secure?
> >>>>>>>>>>>> Le 8 déc. 2013 02:02, "Radhakrishna Kalyan" <
> >> nrkkalyan@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>
> >>
>

Re: https in OpenEJB

Posted by Nrkkalyan <nr...@gmail.com>.
Sorry to bother you with so many questions. 

But is it possible to setup so that we can have both http and https together. If yes then can you give some pointers about those setup configuration. 



Regards 
/Kalyan 
0733312584

PS: May have typos due to using mobile

On 9 dec 2013, at 09:00, Romain Manni-Bucau <rm...@gmail.com> wrote:

> Out of the box yes. Dont forget that's designed as a test feature.
> Le 9 déc. 2013 08:51, "Nrkkalyan" <nr...@gmail.com> a écrit :
> 
>> So is it like
>> 1: We can have either http or https but not both http and https at the
>> same time?
>> 
>> Regards
>> /Kalyan
>> 0733312584
>> 
>> PS: May have typos due to using mobile
>> 
>> On 9 dec 2013, at 08:42, Romain Manni-Bucau <rm...@gmail.com> wrote:
>> 
>>> Yes
>>> Le 9 déc. 2013 04:48, "Nrkkalyan" <nr...@gmail.com> a écrit :
>>> 
>>>> Then on which port does it listens for https. Will it be same as the
>> http
>>>> port?
>>>> 
>>>> 
>>>> 
>>>> Regards
>>>> /Kalyan
>>>> 0733312584
>>>> 
>>>> PS: May have typos due to using mobile
>>>> 
>>>> On 8 dec 2013, at 23:24, Romain Manni-Bucau <rm...@gmail.com>
>> wrote:
>>>> 
>>>>> yes but doesn't mean we don't support https, just means you'll get
>>>>> http instead of https using UriInfo for instance.
>>>>> 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 <nr...@gmail.com>:
>>>>>> 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 <
>>>> rmannibucau@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 <nr...@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 <
>>>>>>> rmannibucau@gmail.com>wrote:
>>>>>>>> 
>>>>>>>>> httpejbd.enable.... for cipher suites. Always use the prefix
>>>>>>>>> Le 8 déc. 2013 16:11, "Radhakrishna Kalyan" <nr...@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 <
>>>>>>>>> nrkkalyan@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 <
>>>>>>>>>> rmannibucau@gmail.com
>>>>>>>>>>>> wrote:
>>>>>>>>>>> 
>>>>>>>>>>>> Did you try httpejbd.secure?
>>>>>>>>>>>> Le 8 déc. 2013 02:02, "Radhakrishna Kalyan" <
>> nrkkalyan@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>
>> 

Re: https in OpenEJB

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Out of the box yes. Dont forget that's designed as a test feature.
Le 9 déc. 2013 08:51, "Nrkkalyan" <nr...@gmail.com> a écrit :

> So is it like
> 1: We can have either http or https but not both http and https at the
> same time?
>
> Regards
> /Kalyan
> 0733312584
>
> PS: May have typos due to using mobile
>
> On 9 dec 2013, at 08:42, Romain Manni-Bucau <rm...@gmail.com> wrote:
>
> > Yes
> > Le 9 déc. 2013 04:48, "Nrkkalyan" <nr...@gmail.com> a écrit :
> >
> >> Then on which port does it listens for https. Will it be same as the
> http
> >> port?
> >>
> >>
> >>
> >> Regards
> >> /Kalyan
> >> 0733312584
> >>
> >> PS: May have typos due to using mobile
> >>
> >> On 8 dec 2013, at 23:24, Romain Manni-Bucau <rm...@gmail.com>
> wrote:
> >>
> >>> yes but doesn't mean we don't support https, just means you'll get
> >>> http instead of https using UriInfo for instance.
> >>> 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 <nr...@gmail.com>:
> >>>> 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 <
> >> rmannibucau@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 <nr...@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 <
> >>>>> rmannibucau@gmail.com>wrote:
> >>>>>>
> >>>>>>> httpejbd.enable.... for cipher suites. Always use the prefix
> >>>>>>> Le 8 déc. 2013 16:11, "Radhakrishna Kalyan" <nr...@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 <
> >>>>>>> nrkkalyan@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 <
> >>>>>>>> rmannibucau@gmail.com
> >>>>>>>>>> wrote:
> >>>>>>>>>
> >>>>>>>>>> Did you try httpejbd.secure?
> >>>>>>>>>> Le 8 déc. 2013 02:02, "Radhakrishna Kalyan" <
> nrkkalyan@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>
> >>
>

Re: https in OpenEJB

Posted by Nrkkalyan <nr...@gmail.com>.
So is it like 
1: We can have either http or https but not both http and https at the same time?

Regards 
/Kalyan 
0733312584

PS: May have typos due to using mobile

On 9 dec 2013, at 08:42, Romain Manni-Bucau <rm...@gmail.com> wrote:

> Yes
> Le 9 déc. 2013 04:48, "Nrkkalyan" <nr...@gmail.com> a écrit :
> 
>> Then on which port does it listens for https. Will it be same as the http
>> port?
>> 
>> 
>> 
>> Regards
>> /Kalyan
>> 0733312584
>> 
>> PS: May have typos due to using mobile
>> 
>> On 8 dec 2013, at 23:24, Romain Manni-Bucau <rm...@gmail.com> wrote:
>> 
>>> yes but doesn't mean we don't support https, just means you'll get
>>> http instead of https using UriInfo for instance.
>>> 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 <nr...@gmail.com>:
>>>> 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 <
>> rmannibucau@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 <nr...@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 <
>>>>> rmannibucau@gmail.com>wrote:
>>>>>> 
>>>>>>> httpejbd.enable.... for cipher suites. Always use the prefix
>>>>>>> Le 8 déc. 2013 16:11, "Radhakrishna Kalyan" <nr...@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 <
>>>>>>> nrkkalyan@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 <
>>>>>>>> rmannibucau@gmail.com
>>>>>>>>>> wrote:
>>>>>>>>> 
>>>>>>>>>> Did you try httpejbd.secure?
>>>>>>>>>> Le 8 déc. 2013 02:02, "Radhakrishna Kalyan" <nr...@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>
>> 

Re: https in OpenEJB

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Yes
Le 9 déc. 2013 04:48, "Nrkkalyan" <nr...@gmail.com> a écrit :

> Then on which port does it listens for https. Will it be same as the http
> port?
>
>
>
> Regards
> /Kalyan
> 0733312584
>
> PS: May have typos due to using mobile
>
> On 8 dec 2013, at 23:24, Romain Manni-Bucau <rm...@gmail.com> wrote:
>
> > yes but doesn't mean we don't support https, just means you'll get
> > http instead of https using UriInfo for instance.
> > 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 <nr...@gmail.com>:
> >> 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 <
> rmannibucau@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 <nr...@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 <
> >>> rmannibucau@gmail.com>wrote:
> >>>>
> >>>>> httpejbd.enable.... for cipher suites. Always use the prefix
> >>>>> Le 8 déc. 2013 16:11, "Radhakrishna Kalyan" <nr...@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 <
> >>>>> nrkkalyan@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 <
> >>>>>> rmannibucau@gmail.com
> >>>>>>>> wrote:
> >>>>>>>
> >>>>>>>> Did you try httpejbd.secure?
> >>>>>>>> Le 8 déc. 2013 02:02, "Radhakrishna Kalyan" <nr...@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>
>

Re: https in OpenEJB

Posted by Nrkkalyan <nr...@gmail.com>.
Then on which port does it listens for https. Will it be same as the http port?



Regards 
/Kalyan 
0733312584

PS: May have typos due to using mobile

On 8 dec 2013, at 23:24, Romain Manni-Bucau <rm...@gmail.com> wrote:

> yes but doesn't mean we don't support https, just means you'll get
> http instead of https using UriInfo for instance.
> 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 <nr...@gmail.com>:
>> 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 <rm...@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 <nr...@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 <
>>> rmannibucau@gmail.com>wrote:
>>>> 
>>>>> httpejbd.enable.... for cipher suites. Always use the prefix
>>>>> Le 8 déc. 2013 16:11, "Radhakrishna Kalyan" <nr...@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 <
>>>>> nrkkalyan@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 <
>>>>>> rmannibucau@gmail.com
>>>>>>>> wrote:
>>>>>>> 
>>>>>>>> Did you try httpejbd.secure?
>>>>>>>> Le 8 déc. 2013 02:02, "Radhakrishna Kalyan" <nr...@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>

Re: https in OpenEJB

Posted by Romain Manni-Bucau <rm...@gmail.com>.
yes but doesn't mean we don't support https, just means you'll get
http instead of https using UriInfo for instance.
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 <nr...@gmail.com>:
> 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 <rm...@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 <nr...@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 <
>> rmannibucau@gmail.com>wrote:
>> >
>> >> httpejbd.enable.... for cipher suites. Always use the prefix
>> >> Le 8 déc. 2013 16:11, "Radhakrishna Kalyan" <nr...@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 <
>> >> nrkkalyan@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 <
>> >> > rmannibucau@gmail.com
>> >> > > > wrote:
>> >> > >
>> >> > >> Did you try httpejbd.secure?
>> >> > >> Le 8 déc. 2013 02:02, "Radhakrishna Kalyan" <nr...@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>

Re: https in OpenEJB

Posted by Radhakrishna Kalyan <nr...@gmail.com>.
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 <rm...@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 <nr...@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 <
> rmannibucau@gmail.com>wrote:
> >
> >> httpejbd.enable.... for cipher suites. Always use the prefix
> >> Le 8 déc. 2013 16:11, "Radhakrishna Kalyan" <nr...@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 <
> >> nrkkalyan@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 <
> >> > rmannibucau@gmail.com
> >> > > > wrote:
> >> > >
> >> > >> Did you try httpejbd.secure?
> >> > >> Le 8 déc. 2013 02:02, "Radhakrishna Kalyan" <nr...@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>

Re: https in OpenEJB

Posted by Romain Manni-Bucau <rm...@gmail.com>.
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 <nr...@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 <rm...@gmail.com>wrote:
>
>> httpejbd.enable.... for cipher suites. Always use the prefix
>> Le 8 déc. 2013 16:11, "Radhakrishna Kalyan" <nr...@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 <
>> nrkkalyan@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 <
>> > rmannibucau@gmail.com
>> > > > wrote:
>> > >
>> > >> Did you try httpejbd.secure?
>> > >> Le 8 déc. 2013 02:02, "Radhakrishna Kalyan" <nr...@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>

Re: https in OpenEJB

Posted by Radhakrishna Kalyan <nr...@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 <rm...@gmail.com>wrote:

> httpejbd.enable.... for cipher suites. Always use the prefix
> Le 8 déc. 2013 16:11, "Radhakrishna Kalyan" <nr...@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 <
> nrkkalyan@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 <
> > rmannibucau@gmail.com
> > > > wrote:
> > >
> > >> Did you try httpejbd.secure?
> > >> Le 8 déc. 2013 02:02, "Radhakrishna Kalyan" <nr...@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>

Re: https in OpenEJB

Posted by Romain Manni-Bucau <rm...@gmail.com>.
httpejbd.enable.... for cipher suites. Always use the prefix
Le 8 déc. 2013 16:11, "Radhakrishna Kalyan" <nr...@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 <nrkkalyan@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 <
> rmannibucau@gmail.com
> > > wrote:
> >
> >> Did you try httpejbd.secure?
> >> Le 8 déc. 2013 02:02, "Radhakrishna Kalyan" <nr...@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>
>

Re: https in OpenEJB

Posted by Radhakrishna Kalyan <nr...@gmail.com>.
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 <nr...@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 <rmannibucau@gmail.com
> > wrote:
>
>> Did you try httpejbd.secure?
>> Le 8 déc. 2013 02:02, "Radhakrishna Kalyan" <nr...@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>

Re: https in OpenEJB

Posted by Radhakrishna Kalyan <nr...@gmail.com>.
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
<rm...@gmail.com>wrote:

> Did you try httpejbd.secure?
> Le 8 déc. 2013 02:02, "Radhakrishna Kalyan" <nr...@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>

Re: https in OpenEJB

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Did you try httpejbd.secure?
Le 8 déc. 2013 02:02, "Radhakrishna Kalyan" <nr...@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>
>