LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-05-2019, 06:47 AM   #1
LittleMaster
Member
 
Registered: Jun 2012
Posts: 121
Blog Entries: 1

Rep: Reputation: Disabled
How to encrypt keystore password in server.xml


Hi ,

Tomcat instance failing after enabling SSL certificate .

However when I try the below approach in the server.xml comments, Tomcat does not
start:



[root@porsche conf]# cat server.xml
<Connector
protocol="org.apache.coyote.http11.Http11NioProtocol"
port="8443" maxThreads="200" compression="on"
scheme="https" secure="true" SSLEnabled="true"
keystoreFile="conf/keystore.jks" keystorePass="XziIPXoTSoF=OK0"
clientAuth="false" sslProtocol="TLS">
<UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" />
</Connector>
[root@porsche conf]#

[root@porsche conf]# ll keystore.jks
-rw-r-----. 1 root root 5470 Apr 5 16:23 keystore.jks
[root@porsche conf]# pwd
/opt/tomcat/conf
[root@porsche conf]#

after enabling server.xml modification fails to start

Catalina.log

08-Apr-2019 16:03:25.258 WARNING [main] org.apache.tomcat.util.digester.Digester.endElement No rules found matching [Connector/SSLHostConfig/Certificate]
08-Apr-2019 16:03:25.260 WARNING [main] org.apache.tomcat.util.digester.Digester.endElement No rules found matching [Connector/SSLHostConfig]
08-Apr-2019 16:03:25.260 WARNING [main] org.apache.tomcat.util.digester.Digester.endElement No rules found matching [Connector]
java.lang.NullPointerException
at org.apache.catalina.startup.Catalina.load(Catalina.java:580)
at org.apache.catalina.startup.Catalina.load(Catalina.java:612)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:306)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:491)
08-Apr-2019 16:03:25.261 SEVERE [main] org.apache.catalina.startup.Catalina.start Cannot start server, server instance is not configured
[root@porsche conf]#

Last edited by LittleMaster; 04-08-2019 at 05:34 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Red Hat application server ssl keystore problem kkinney Red Hat 1 04-25-2014 03:49 PM
SSL Keystore Certificate Password weenux28 Linux - Security 2 03-06-2013 11:00 AM
crypt() perl function to encrypt Password in shell scripts or How Encrypt passwords ? balakrishnay Linux - General 13 01-14-2010 09:35 AM
Deleted keystore, can I completely reinstall jdk? littlegreywings Linux - Server 3 09-07-2009 06:14 AM
Tomcat .keystore file for SSL keysorsoze Linux - Software 0 08-28-2007 03:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration