https error

108 views
Skip to first unread message

Saidy Binta

unread,
Aug 11, 2017, 6:21:02 AM8/11/17
to dspac...@googlegroups.com

Hi All,

 

Please can someone assist me. I am currently using tomcat 9 and I am having issues with https.

 

11-Aug-2017 08:22:07.536 WARNING [main] org.apache.tomcat.util.net.openssl.OpenSSLContext.init Error initializing SSL context

java.lang.NullPointerException

                at org.apache.tomcat.util.net.openssl.OpenSSLContext.init(OpenSSLContext.java:283)

                at org.apache.tomcat.util.net.AbstractJsseEndpoint.createSSLContext(AbstractJsseEndpoint.java:112)

                at org.apache.tomcat.util.net.AbstractJsseEndpoint.initialiseSsl(AbstractJsseEndpoint.java:85)

                at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:221)

                at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:950)

                at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:573)

                at org.apache.coyote.http11.AbstractHttp11Protocol.init(AbstractHttp11Protocol.java:70)

                at org.apache.catalina.connector.Connector.initInternal(Connector.java:932)

                at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)

                at org.apache.catalina.core.StandardService.initInternal(StandardService.java:530)

                at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)

                at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:875)

                at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)

                at org.apache.catalina.startup.Catalina.load(Catalina.java:607)

                at org.apache.catalina.startup.Catalina.load(Catalina.java:630)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

                at java.lang.reflect.Method.invoke(Unknown Source)

                at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:311)

                at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:494)

 

this is the server.xml file

 

<Connector protocol="org.apache.coyote.http11.Http11NioProtocol"

                            port="8443"   

                           maxThreads="200"

                           enableLookups="false"

                         disableUploadTimeout="true"

                                scheme="https"

                               secure="true"

                     SSLEnabled="true"  

                        clientAuth="false"

                                sslProtocol="TLS"

                KeystoreFile="C:\certs\eldr_mrc_gm.jks"

                                        KeystorePass="ehkl;u"

                                                                type="RSA"

                                />

 

 

Regards

 




DISCLAIMER: This message is private and confidential. If you have received this message in error please notify us and remove it from your system. Any views and opinions expressed in this message are those of the individual sender and do not necessarily represent the views and opinions of MRC Unit The Gambia.

___________________________________________________________
This communication is confidential and may contain privileged information intended solely for the named recipient(s). It may not be used or disclosed except for the purpose for which it has been sent. If you are not the intended recipient, you must not copy, distribute, take any action or reliance on it. If you have received this communication in error, do not open any attachments but please notify the Help Desk by e-mailing he...@mrc.gm quoting the sender details, and then delete this message along with any attached files. E-mail messages are not secure and attachments could contain software viruses which may damage your computer system. Whilst every reasonable precaution has been taken to minimise this risk, The MRC Unit The Gambia cannot accept any liability for any damage sustained as a result of these factors. You are advised to carry out your own virus checks before opening any attachments. Unless expressly stated, opinions in this message are those of the e-mail author and not of the Medical Research Council Unit The Gambia.
________________________________________________________________________

Alain Tschanz

unread,
Aug 11, 2017, 8:23:30 AM8/11/17
to Saidy Binta, dspac...@googlegroups.com

KeystoreFile="C:\certs\eldr_mrc_gm.jks"

 

Locate your .keystore file. Use “/” with Windows.

 

KeystoreFile="C:/<xyz>/.keystore"

--
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.
To post to this group, send email to dspac...@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Saidy Binta

unread,
Aug 14, 2017, 5:16:48 AM8/14/17
to Alain Tschanz, dspac...@googlegroups.com

Dear Tschanz,

 

Thanks for your respond, I have change the \ to / but the error has not changed.

 

Please any help will be greatly appreciated.

 

Regards

Binta

Alain Tschanz

unread,
Aug 14, 2017, 8:43:22 AM8/14/17
to Saidy Binta, dspac...@googlegroups.com

Did you change the location of the keystore file?

 

https://tomcat.apache.org/tomcat-8.0-doc/ssl-howto.html

<!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->

<Connector

           protocol="org.apache.coyote.http11.Http11NioProtocol"

           port="8443" maxThreads="200"

           scheme="https" secure="true" SSLEnabled="true"

           keystoreFile="${user.home}/.keystore" keystorePass="changeit"

           clientAuth="false" sslProtocol="TLS"/>

Reply all
Reply to author
Forward
0 new messages