<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Hi,</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Does anyone successfully <span><a href="https://wiki.evolveum.com/display/midPoint/Keystore+Configuration" class="OWAAutoLink" id="LPlnk878588" previewremoved="true">override the default JVM keystore/truststore location
and point it to the midPoint keystore</a>? We tried to do that but we have problems.</span></p>
<p style="margin-top:0;margin-bottom:0"><span><br>
</span></p>
<p style="margin-top:0;margin-bottom:0"><span>We tried this...</span></p>
<p style="margin-top:0;margin-bottom:0"><span><br>
</span></p>
<p style="margin-top:0;margin-bottom:0"><span></p>
<div><i><span style="background-color: rgb(255, 255, 0);">root@MIDPOINTIDM:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/security# -Djavax.net.ssl.trustStore=/opt/midpoint/var/keystore.jceks -Djavax.net.ssl.trustStoreType=jceks</span></i></div>
<div><i>bash: -Djavax.net.ssl.trustStore=/opt/midpoint/var/keystore.jceks: No such file or directory</i></div>
<br>
</span>
<p></p>
<p style="margin-top:0;margin-bottom:0"><span>...but it's says that location does not exist, even it does.</span></p>
<p style="margin-top:0;margin-bottom:0"><span><br>
</span></p>
<p style="margin-top:0;margin-bottom:0"><span>We also tried this...</span></p>
<p style="margin-top:0;margin-bottom:0"><span><br>
</span></p>
<p style="margin-top:0;margin-bottom:0"><span></p>
<div><i><span style="background-color: rgb(255, 255, 0);">r</span><span style="background-color: rgb(255, 255, 0);">oot@MIDPOINTIDM:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/security# java -Djavax.net.ssl.trustStore=/opt/midpoint/var/keystore.jceks -Djavax.net.ssl.trustStoreType=jceks</span></i></div>
<div><i>Usage: java [-options] class [args...]</i></div>
<div><i> (to execute a class)</i></div>
<div><i> or java [-options] -jar jarfile [args...]</i></div>
<div><i> (to execute a jar file)</i></div>
<div><i>where options include:</i></div>
<div><i> -d32 use a 32-bit data model if available</i></div>
<div><i> -d64 use a 64-bit data model if available</i></div>
<div><i> -server to select the "server" VM</i></div>
<div><i> -zero to select the "zero" VM</i></div>
<div><i> -dcevm to select the "dcevm" VM</i></div>
<div><i> The default VM is server,</i></div>
<div><i> because you are running on a server-class machine.<span style="background-color: rgb(255, 255, 0);"></span></i></div>
<div><i><br>
</i></div>
<div><i><br>
</i></div>
<div><i> -cp <class search path of directories and zip/jar files></i></div>
<div><i> -classpath <class search path of directories and zip/jar files></i></div>
<div><i> A : separated list of directories, JAR archives,</i></div>
<div><i> and ZIP archives to search for class files.</i></div>
<div><i> -D<name>=<value></i></div>
<div><i> set a system property</i></div>
<div><i> -verbose:[class|gc|jni]</i></div>
<div><i> enable verbose output</i></div>
<div><i> -version print product version and exit</i></div>
<div><i> -version:<value></i></div>
<div><i> Warning: this feature is deprecated and will be removed</i></div>
<div><i> in a future release.</i></div>
<div><i> require the specified version to run</i></div>
<div><i> -showversion print product version and continue</i></div>
<div><i> -jre-restrict-search | -no-jre-restrict-search</i></div>
<div><i> Warning: this feature is deprecated and will be removed</i></div>
<div><i> in a future release.</i></div>
<div><i> include/exclude user private JREs in the version search</i></div>
<div><i> -? -help print this help message</i></div>
<div><i> -X print help on non-standard options</i></div>
<div><i> -ea[:<packagename>...|:<classname>]</i></div>
<div><i> -enableassertions[:<packagename>...|:<classname>]</i></div>
<div><i> enable assertions with specified granularity</i></div>
<div><i> -da[:<packagename>...|:<classname>]</i></div>
<div><i> -disableassertions[:<packagename>...|:<classname>]</i></div>
<div><i> disable assertions with specified granularity</i></div>
<div><i> -esa | -enablesystemassertions</i></div>
<div><i> enable system assertions</i></div>
<div><i> -dsa | -disablesystemassertions</i></div>
<div><i> disable system assertions</i></div>
<div><i> -agentlib:<libname>[=<options>]</i></div>
<div><i> load native agent library <libname>, e.g. -agentlib:hprof</i></div>
<div><i> see also, -agentlib:jdwp=help and -agentlib:hprof=help</i></div>
<div><i> -agentpath:<pathname>[=<options>]</i></div>
<div><i> load native agent library by full pathname</i></div>
<div><i> -javaagent:<jarpath>[=<options>]</i></div>
<div><i> load Java programming language agent, see java.lang.instrument</i></div>
<div><i> -splash:<imagepath></i></div>
<div><i> show splash screen with specified image</i></div>
<div><i>See http://www.oracle.com/technetwork/java/javase/documentation/index.html for more details.</i></div>
<br>
</span>
<p></p>
<p style="margin-top:0;margin-bottom:0"><span>... but we only got Java help.</span></p>
<p style="margin-top:0;margin-bottom:0"><span><br>
</span></p>
<p style="margin-top:0;margin-bottom:0"><span>We have <span>openjdk-8-jre and openjdk-8-jdk installed on our Ubuntu Server 16.04.5 LTS (64-bit). We use MidPoint 3.8.</span></span></p>
<p style="margin-top:0;margin-bottom:0"><span><span><br>
</span></span></p>
<p style="margin-top:0;margin-bottom:0"><span><span>Best Regards,</span></span></p>
<p style="margin-top:0;margin-bottom:0"><span><span>Jan Parttimaa</span></span></p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr" style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 12pt; background-color: rgb(255, 255, 255);">
<p><span style="color:rgb(0,0,0)"><i><span style="font-family:Calibri,Arial,Helvetica,sans-serif">Jan Parttimaa</span></i></span></p>
<span style="font-family:Calibri,Arial,Helvetica,sans-serif"></span><span style="color:rgb(0,0,0)"><i></i></span><span style="font-family:Calibri,Arial,Helvetica,sans-serif"></span>
<p><span style="color:rgb(0,0,0)"><i><span style="font-family:Calibri,Arial,Helvetica,sans-serif">1602738,</span></i></span></p>
<span style="font-family:Calibri,Arial,Helvetica,sans-serif"></span><span style="color:rgb(0,0,0)"><i></i></span><span style="font-family:Calibri,Arial,Helvetica,sans-serif"></span>
<p><span style="color:rgb(0,0,0)"><i><span style="font-family:Calibri,Arial,Helvetica,sans-serif">Tietojenkäsittelyn koulutusohjelma,</span></i></span></p>
<span style="font-family:Calibri,Arial,Helvetica,sans-serif"></span><span style="color:rgb(0,0,0)"><i></i></span><span style="font-family:Calibri,Arial,Helvetica,sans-serif"></span>
<p><span style="color:rgb(0,0,0)"><i><span style="font-family:Calibri,Arial,Helvetica,sans-serif">Haaga-Helia ammattikorkeakoulu</span><span style="font-family:Calibri,Arial,Helvetica,sans-serif"></span><span style="font-family:Calibri,Arial,Helvetica,sans-serif">,
Pasilan kampus</span></i></span></p>
</div>
</div>
</div>
</body>
</html>