Pages

Thursday, November 20, 2014

javax.net.ssl.SSLKeyException: FATAL Alert:BAD_CERTIFICATE - A corrupt or unuseable certificate was received.


Error:

javax.net.ssl.SSLKeyException: FATAL Alert:BAD_CERTIFICATE - A corrupt or unuseable certificate was received.

        at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.tryWithMex(RuntimeWSDLParser.java:182)
        at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:153)
        at com.sun.xml.ws.client.WSServiceDelegate.parseWSDL(WSServiceDelegate.java:284)
        at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:246)
        at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:197)
        at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:187)
        at weblogic.wsee.jaxws.spi.WLSServiceDelegate.<init>(WLSServiceDelegate.java:84)
        at weblogic.wsee.jaxws.spi.WLSProvider$ServiceDelegate.<init>(WLSProvider.java:598)
        at weblogic.wsee.jaxws.spi.WLSProvider.createServiceDelegate(WLSProvider.java:120)
        at weblogic.wsee.jaxws.spi.WLSProvider.createServiceDelegate(WLSProvider.java:112)
        at weblogic.wsee.jaxws.spi.WLSProvider.createServiceDelegate(WLSProvider.java:83)
        at javax.xml.ws.Service.<init>(Service.java:56)
        at edu.sfsu.excs.ExchangeConnectorService.<init>(ExchangeConnectorService.java:42)
        at edu.sfsu.exchange.connector.util.ExchangeConnectorUtil.getExchangeConnectorServiceSoap(Unknown Source)
        at edu.sfsu.exchange.connector.adapter.ExchangeConnectorWrapper.buildEXCSConfig(Unknown Source)
        at edu.sfsu.exchange.connector.adapter.ExchangeConnectorProcessTask.createUser(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpEXCS_CREATEUSER.CREATEUSER(adpEXCS_CREATEUSER.java:110)
        at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpEXCS_CREATEUSER.implementation(adpEXCS_CREATEUSER.java:54)
        at com.thortech.xl.client.events.tcBaseEvent.run(tcBaseEvent.java:196)
        at com.thortech.xl.dataobj.tcDataObj.runEvent(tcDataObj.java:2492)
        at com.thortech.xl.dataobj.tcScheduleItem.runMilestoneEvent(tcScheduleItem.java:2919)
        at com.thortech.xl.dataobj.tcScheduleItem.eventPostUpdate(tcScheduleItem.java:742)
        at com.thortech.xl.dataobj.tcDataObj.update(tcDataObj.java:664)
        at com.thortech.xl.dataobj.tcDataObj.save(tcDataObj.java:508)
        at com.thortech.xl.dataobj.tcScheduleItem.checkChildrenIfCompleted(tcScheduleItem.java:1808)
        at com.thortech.xl.dataobj.tcScheduleItem.checkChildren(tcScheduleItem.java:1852)
        at com.thortech.xl.dataobj.tcScheduleItem.eventPostUpdate(tcScheduleItem.java:723)
        at com.thortech.xl.dataobj.tcDataObj.update(tcDataObj.java:664)
        at com.thortech.xl.dataobj.tcDataObj.save(tcDataObj.java:508)
        at com.thortech.xl.dataobj.tcORC.completeSystemValidationMilestone(tcORC.java:1190)
        at com.thortech.xl.dataobj.tcOrderItemInfo.completeCarrierBaseMilestone(tcOrderItemInfo.java:735)
        at com.thortech.xl.dataobj.tcOrderItemInfo.eventPostInsert(tcOrderItemInfo.java:172)
        at com.thortech.xl.dataobj.tcUDProcess.eventPostInsert(tcUDProcess.java:237)
        at com.thortech.xl.dataobj.tcDataObj.insert(tcDataObj.java:604)
        at com.thortech.xl.dataobj.tcDataObj.save(tcDataObj.java:474)
        at com.thortech.xl.dataobj.tcTableDataObj.save(tcTableDataObj.java:2906)
        at com.thortech.xl.dataobj.tcORC.autoDOBSave(tcORC.java:3002)
        at com.thortech.xl.dataobj.util.tcOrderPackages.createOrder(tcOrderPackages.java:526)
        at com.thortech.xl.dataobj.util.tcOrderPackages.orderPackageForUser(tcOrderPackages.java:177)
        at com.thortech.xl.dataobj.tcOIU.provision(tcOIU.java:527)
        at com.thortech.xl.dataobj.tcOIU.eventPostInsert(tcOIU.java:306)
        at com.thortech.xl.dataobj.tcDataObj.insert(tcDataObj.java:604)
        at com.thortech.xl.dataobj.tcDataObj.save(tcDataObj.java:474)
        at com.thortech.xl.dataobj.tcTableDataObj.save(tcTableDataObj.java:2906)


Cause:

Renew the SSL Certificates are imported into the Web Logic Trusted Key Store.

Solution:

To resolve the above error, We need to enable ssl JSSE implementation in web logic server as follows:

1. Modify the startNodeManager.sh file
Add the JAVA_OPTIONS="${JAVA_OPTIONS} -Dweblogic.ssl.JSSEEnabled=true"
2. Modify the setDomainEnv.sh File
 Add the JAVA_OPTIONS="${JAVA_OPTIONS} -Dweblogic.ssl.JSSEEnabled=true"

After adding modifying the startNodeManager.sh and setDomainEnv.sh file and restart the Node Manager and Web Logic Managed Server and also Admin Server. The issue will be resolved.

Client Side:

If the issue is getting the client side, add the following property into a java system variable and the issue will be resolved.

-Dweblogic.security.SSL.enableJSSE=true