In conf/server.xml I wrote the following text:
<Connector port="8443" SSLEnabled="true" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="200"
enableLookups="false" disableUploadTimeout="true"
acceptCount="100" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
keystoreFile="keyStore" keystorePass="password" keystoreType="JKS"
keyAlias="tomcat"/>
And next I need to use the content of keyStore in the code (in servlet on the server side).
I tried this:
System.getProperty("javax.net.ssl.keyStore")
But it returns the name of keyStore.
So is it any way to get the content of keyStore? Or maybe I should make another configuration of server?
(My next step is extracting private and public keys from keyStore and using them for JWT)