<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello,</p>
<p>my name is Michele Adduci and I've freshly subscribed to this
mailing list because I'm seeking for advice/help on an issue that
arose during the creation of a new application and I couldn't find
my answers by searching online.<br>
<br>
I'm using JDK 14.0.1 GA and trying to create a small
redistributable version of my application using the combo jlink +
jpackage.<br>
<br>
</p>
In my application, I'm trying to validate some signatures with
algorithm such a<code></code><code></code><code></code>s
SHA256withECDSA, SHA384withECDSA and SHA512withECDSA. If I run my
application with the standard JDK distribution, the application is
working correctly, but if I run it with the result of
jlink+jpackage, I get errors like<br>
<br>
<p>"SHA256withECSA Signature not available"</p>
<p>I've double-checked that libsunec.so is in place under the
'runtime/lib' folder, but I've seen that the SunEC provider isn't
loaded at all during the start (just SUN and SunRSA are being
loaded).<br>
<br>
The jlink modules I'm using are: <br>
</p>
<p>java.desktop,java.smartcardio,java.management,java.sql,java.logging,java.net.http,java.xml.crypto,jdk.crypto.ec</p>
<p>and my jlink command is the following one:</p>
<p><br>
</p>
<p>jlink --strip-debug \<br>
--strip-native-commands \<br>
--bind-services \<br>
--no-header-files \<br>
--no-man-pages \<br>
--compress=2 \<br>
--module-path ${JAVA_HOME}/jmods \<br>
--add-modules
java.desktop,java.smartcardio,java.management,java.sql,java.logging,java.net.http,java.xml.crypto,jdk.crypto.ec
\<br>
--output jlink-runtime</p>
<p><br>
</p>
<p>What am I doing wrong? The issue is present in both Windows and
Linux - I cannot test on Mac.<br>
<br>
Kind regards and thanks in advance for your help<br>
<br>
Michele Adduci<br>
<br>
</p>
</body>
</html>