3 Replies Latest reply on Apr 7, 2005 12:23 AM by Bob Jones

    How to enable HTTPS?

    infectedrhythms Novice

      Can someone please point out the documents I can use to enable Jboss to accept HTTPS requests.

      Thanks

        • 2. Re: How to enable HTTPS?
          infectedrhythms Novice

          Thanks!

          I got it working!

          But there is a tiny problem...

          Am trying to connect to my servlet using https and apache XML RPC which uses URLConnection but I get an exception look below...

          What I want to do is write a service that will use apache XML rpc, which essentially uses URLConnection...

          I also wrote a temporary servlet and hosted it on the same JBoss server.
          I have the service connect to localhost which works fine... But I want to use https. Eventually the service will connect externally...

          So how can I get the URLConnection used by apache XML RPC to trust the self signed certificate?

          Thanks

          12:03:23,421 INFO [STDOUT] java.io.IOException: sun.security.validator.ValidatorException: No trusted certificate found
          12:03:23,421 INFO [STDOUT] at org.apache.xmlrpc.XmlRpcClient$Worker.execute
          (XmlRpcClient.java:444)
          12:03:23,421 INFO [STDOUT] at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpc
          Client.java:163)
          12:03:23,421 INFO [STDOUT] at org.tmi.TestService.startService(TestService.
          java:50)
          12:03:23,421 INFO [STDOUT] at org.jboss.system.ServiceMBeanSupport.jbossInt
          ernalStart(ServiceMBeanSupport.java:271)
          12:03:23,421 INFO [STDOUT] at org.jboss.system.ServiceMBeanSupport.jbossInt
          ernalLifecycle(ServiceMBeanSupport.java:221)
          12:03:23,421 INFO [STDOUT] at sun.reflect.GeneratedMethodAccessor2.invoke(U
          nknown Source)
          12:03:23,421 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invo
          ke(DelegatingMethodAccessorImpl.java:25)
          12:03:23,421 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:3
          24)
          12:03:23,421 INFO [STDOUT] at org.jboss.mx.interceptor.ReflectedDispatcher.
          invoke(ReflectedDispatcher.java:141)
          12:03:23,421 INFO [STDOUT] at org.jboss.mx.server.Invocation.dispatch(Invoc
          ation.java:80)
          12:03:23,421 INFO [STDOUT] at org.jboss.mx.interceptor.AbstractInterceptor.
          invoke(AbstractInterceptor.java:119)
          12:03:23,421 INFO [STDOUT] at org.jboss.mx.server.Invocation.invoke(Invocat
          ion.java:74)
          12:03:23,421 INFO [STDOUT] at org.jboss.mx.interceptor.ModelMBeanOperationI
          nterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
          12:03:23,421 INFO [STDOUT] at org.jboss.mx.server.Invocation.invoke(Invocat
          ion.java:74)
          12:03:23,421 INFO [STDOUT] at org.jboss.mx.server.AbstractMBeanInvoker.invo
          ke(AbstractMBeanInvoker.java:242)
          12:03:23,421 INFO [STDOUT] at org.jboss.mx.server.MBeanServerImpl.invoke(MB
          eanServerImpl.java:642)
          12:03:23,421 INFO [STDOUT] at org.jboss.system.ServiceController$ServicePro
          xy.invoke(ServiceController.java:891)
          12:03:23,421 INFO [STDOUT] at $Proxy0.start(Unknown Source)
          12:03:23,421 INFO [STDOUT] at org.jboss.system.ServiceController.start(Serv
          iceController.java:416)
          12:03:23,421 INFO [STDOUT] at sun.reflect.GeneratedMethodAccessor6.invoke(U
          nknown Source)
          12:03:23,421 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invo
          ke(DelegatingMethodAccessorImpl.java:25)
          12:03:23,421 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:3
          24)
          12:03:23,421 INFO [STDOUT] at org.jboss.mx.interceptor.ReflectedDispatcher.
          invoke(ReflectedDispatcher.java:141)
          12:03:23,421 INFO [STDOUT] at org.jboss.mx.server.Invocation.dispatch(Invoc
          ation.java:80)
          12:03:23,421 INFO [STDOUT] at org.jboss.mx.server.Invocation.invoke(Invocat
          ion.java:72)
          12:03:23,421 INFO [STDOUT] at org.jboss.mx.server.AbstractMBeanInvoker.invo
          ke(AbstractMBeanInvoker.java:242)
          12:03:23,421 INFO [STDOUT] at org.jboss.mx.server.MBeanServerImpl.invoke(MB
          eanServerImpl.java:642)
          12:03:23,421 INFO [STDOUT] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanP
          roxyExt.java:176)
          12:03:23,421 INFO [STDOUT] at $Proxy4.start(Unknown Source)
          12:03:23,421 INFO [STDOUT] at org.jboss.deployment.SARDeployer.start(SARDep
          loyer.java:261)
          12:03:23,421 INFO [STDOUT] at org.jboss.deployment.MainDeployer.start(MainD
          eployer.java:935)
          12:03:23,421 INFO [STDOUT] at org.jboss.deployment.MainDeployer.deploy(Main
          Deployer.java:746)
          12:03:23,421 INFO [STDOUT] at org.jboss.deployment.MainDeployer.deploy(Main
          Deployer.java:709)
          12:03:23,421 INFO [STDOUT] at sun.reflect.GeneratedMethodAccessor30.invoke(
          Unknown Source)
          12:03:23,421 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invo
          ke(DelegatingMethodAccessorImpl.java:25)
          12:03:23,421 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:3
          24)
          12:03:23,421 INFO [STDOUT] at org.jboss.mx.interceptor.ReflectedDispatcher.
          invoke(ReflectedDispatcher.java:141)
          12:03:23,421 INFO [STDOUT] at org.jboss.mx.server.Invocation.dispatch(Invoc
          ation.java:80)
          12:03:23,421 INFO [STDOUT] at org.jboss.mx.interceptor.AbstractInterceptor.
          invoke(AbstractInterceptor.java:119)
          12:03:23,421 INFO [STDOUT] at org.jboss.mx.server.Invocation.invoke(Invocat
          ion.java:74)
          12:03:23,421 INFO [STDOUT] at org.jboss.mx.interceptor.ModelMBeanOperationI
          nterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
          12:03:23,437 INFO [STDOUT] at org.jboss.mx.server.Invocation.invoke(Invocat
          ion.java:74)
          12:03:23,437 INFO [STDOUT] at org.jboss.mx.server.AbstractMBeanInvoker.invo
          ke(AbstractMBeanInvoker.java:242)
          12:03:23,452 INFO [STDOUT] at org.jboss.mx.server.MBeanServerImpl.invoke(MB
          eanServerImpl.java:642)
          12:03:23,452 INFO [STDOUT] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanP
          roxyExt.java:176)
          12:03:23,452 INFO [STDOUT] at $Proxy8.deploy(Unknown Source)
          12:03:23,452 INFO [STDOUT] at org.jboss.deployment.scanner.URLDeploymentSca
          nner.deploy(URLDeploymentScanner.java:305)
          12:03:23,452 INFO [STDOUT] at org.jboss.deployment.scanner.URLDeploymentSca
          nner.scan(URLDeploymentScanner.java:481)
          12:03:23,452 INFO [STDOUT] at org.jboss.deployment.scanner.AbstractDeployme
          ntScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204)
          12:03:23,452 INFO [STDOUT] at org.jboss.deployment.scanner.AbstractDeployme
          ntScanner$ScannerThread.loop(AbstractDeploymentScanner.java:215)
          12:03:23,452 INFO [STDOUT] at org.jboss.deployment.scanner.AbstractDeployme
          ntScanner$ScannerThread.run(AbstractDeploymentScanner.java:194)

          • 3. Re: How to enable HTTPS?
            Bob Jones Newbie

            Did you solve your No trusted certificate problem with the xml-rpc calls.
            I'm having the same problem and it would have been great if you had
            of posted your solution.