<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Fixing https dswsbobe Internal Server error in 4.2 SP4 (trustAnchors) in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/fixing-https-dswsbobe-internal-server-error-in-4-2-sp4-trustanchors/qaa-p/510946#M97830</link>
    <description>&lt;P&gt;I'd say time to raise this to SAP via Support Incident. Need a proper investigation.&lt;/P&gt;</description>
    <pubDate>Wed, 13 Sep 2017 17:24:09 GMT</pubDate>
    <dc:creator>denis_konovalov</dc:creator>
    <dc:date>2017-09-13T17:24:09Z</dc:date>
    <item>
      <title>Fixing https dswsbobe Internal Server error in 4.2 SP4 (trustAnchors)</title>
      <link>https://community.sap.com/t5/technology-q-a/fixing-https-dswsbobe-internal-server-error-in-4-2-sp4-trustanchors/qaq-p/510943</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
  &lt;P&gt;just performed an upgrade from 4.2 SP3 to 4.2 SP4. Everything else is now good, with one exexception: When accessing anything under &lt;A href="https://&amp;lt;bobjserver&amp;gt;/dswsbobje/services/" target="test_blank"&gt;https://&amp;lt;bobjserver&amp;gt;/dswsbobje/services/&lt;/A&gt;. such as &lt;A href="https://&amp;lt;bobjserver&amp;gt;/dswsbobje/services/listServices" target="test_blank"&gt;https://&amp;lt;bobjserver&amp;gt;/dswsbobje/services/listServices&lt;/A&gt; it now returns Internal Server Error.&lt;/P&gt;
  &lt;P&gt;The fix in 4.2 SP3 and prior was to add the following 2 parameters to the Java options for Tomcat:&lt;BR /&gt;-Djavax.net.ssl.trustStore=keystoreFile&lt;BR /&gt;-Djavax.net.ssl.trustStorePassword=&amp;lt;Password&amp;gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;Where the keystoreFile and Password are the same ones used in the server.xml file connector for port 443.&lt;/P&gt;
  &lt;P&gt;However, in SP4 when I add these parameters, it throws the error:&lt;/P&gt;
  &lt;P&gt;SEVERE: Failed to initialize connector [Connector[HTTP/1.1-443]]&lt;BR /&gt;org.apache.catalina.LifecycleException: Failed to initialize component [Connector[HTTP/1.1-443]]&lt;BR /&gt; at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:112)&lt;BR /&gt; at org.apache.catalina.core.StandardService.initInternal(StandardService.java:549)&lt;BR /&gt;...&lt;BR /&gt; at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:494)&lt;BR /&gt;Caused by: org.apache.catalina.LifecycleException: Protocol handler initialization failed&lt;BR /&gt; at org.apache.catalina.connector.Connector.initInternal(Connector.java:970)&lt;BR /&gt; at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)&lt;BR /&gt; ... 12 more&lt;BR /&gt;Caused by: java.lang.IllegalArgumentException: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty at org.apache.tomcat.util.net.AbstractJsseEndpoint.createSSLContext(AbstractJsseEndpoint.java:114)&lt;BR /&gt; at org.apache.tomcat.util.net.AbstractJsseEndpoint.initialiseSsl(AbstractJsseEndpoint.java:85)&lt;BR /&gt;...&lt;BR /&gt; at org.apache.coyote.http11.AbstractHttp11Protocol.init(AbstractHttp11Protocol.java:66)&lt;BR /&gt; at org.apache.catalina.connector.Connector.initInternal(Connector.java:968)&lt;BR /&gt; ... 13 more&lt;BR /&gt;Caused by: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty at java.security.cert.PKIXParameters.setTrustAnchors(PKIXParameters.java:200)&lt;BR /&gt;...&lt;BR /&gt; ... 20 more&lt;/P&gt;
  &lt;P&gt;I can't find much online about this error, but the keystore file used is a 2048 bit RSA JKS keystore which is the new minimum required for SP4 and it is in the same location as it was in SP3 and is readable by Tomcat since it works fine in the server.xml.&lt;/P&gt;
  &lt;P&gt;I tried adding a third parameter for trustAnchors and it still didn't like it:&lt;BR /&gt;-Djavax.net.ssl.trustAnchors=keystoreFile&lt;/P&gt;
  &lt;P&gt;While I am not using web services at the moment, I would prefer not to leave it in a partially broken state.&lt;/P&gt;
  &lt;P&gt;Thanks in Advance.&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2017 20:49:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/fixing-https-dswsbobe-internal-server-error-in-4-2-sp4-trustanchors/qaq-p/510943</guid>
      <dc:creator>NTruhan</dc:creator>
      <dc:date>2017-09-06T20:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: Fixing https dswsbobe Internal Server error in 4.2 SP4 (trustAnchors)</title>
      <link>https://community.sap.com/t5/technology-q-a/fixing-https-dswsbobe-internal-server-error-in-4-2-sp4-trustanchors/qaa-p/510944#M97828</link>
      <description>&lt;P&gt;Why would you need to add those options to Java just to get list of services when accessing dswsbobje ?&lt;/P&gt;
  &lt;P&gt;some web services functionality does require enabling of https transports in Axis2.xml, but nothing in java opts. &lt;BR /&gt;See KBA &lt;/P&gt;
  &lt;P&gt;&lt;A href="https://launchpad.support.sap.com/#/notes/1809210"&gt;https://launchpad.support.sap.com/#/notes/1809210&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;Do you have any docs that show why those parameters need to be added to java opts ?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2017 17:34:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/fixing-https-dswsbobe-internal-server-error-in-4-2-sp4-trustanchors/qaa-p/510944#M97828</guid>
      <dc:creator>denis_konovalov</dc:creator>
      <dc:date>2017-09-08T17:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: Fixing https dswsbobe Internal Server error in 4.2 SP4 (trustAnchors)</title>
      <link>https://community.sap.com/t5/technology-q-a/fixing-https-dswsbobe-internal-server-error-in-4-2-sp4-trustanchors/qaa-p/510945#M97829</link>
      <description>&lt;P&gt;Sorry for the late reply:&lt;/P&gt;
  &lt;P&gt;I believe this is where I got the information from, it has been a while but ever since I have done both steps to modify the axis file and add the parameters to enable https for QaaWS since I got the error the first time a couple years ago in 4.0: &lt;A href="https://launchpad.support.sap.com/#/notes/1896549" target="test_blank"&gt;https://launchpad.support.sap.com/#/notes/1896549&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt;Per the note it says: Axis2 uses a different interfacing for SSL configuration and cannot pick the SSL connector setup in the server.xml for Tomcat&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2017 20:14:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/fixing-https-dswsbobe-internal-server-error-in-4-2-sp4-trustanchors/qaa-p/510945#M97829</guid>
      <dc:creator>NTruhan</dc:creator>
      <dc:date>2017-09-11T20:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: Fixing https dswsbobe Internal Server error in 4.2 SP4 (trustAnchors)</title>
      <link>https://community.sap.com/t5/technology-q-a/fixing-https-dswsbobe-internal-server-error-in-4-2-sp4-trustanchors/qaa-p/510946#M97830</link>
      <description>&lt;P&gt;I'd say time to raise this to SAP via Support Incident. Need a proper investigation.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2017 17:24:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/fixing-https-dswsbobe-internal-server-error-in-4-2-sp4-trustanchors/qaa-p/510946#M97830</guid>
      <dc:creator>denis_konovalov</dc:creator>
      <dc:date>2017-09-13T17:24:09Z</dc:date>
    </item>
  </channel>
</rss>

