添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement . We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I'm trying to connect to a remote HTTPS server and get this when my images are built with:

--enable-https
--enable-all-security-services
-Djava.library.path=${java.home}/jre/lib/amd64
Caused by: javax.net.ssl.SSLHandshakeException: General SSLEngine problem
        at java.lang.Throwable.<init>(Throwable.java:265)
        at java.lang.Exception.<init>(Exception.java:66)
        at java.io.IOException.<init>(IOException.java:58)
        at javax.net.ssl.SSLException.<init>(SSLException.java:52)
        at javax.net.ssl.SSLHandshakeException.<init>(SSLHandshakeException.java:50)
        at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
        at sun.security.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1728)
        at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:330)
        at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:322)
        at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1614)
        at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)
        at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1052)
        at sun.security.ssl.Handshaker$1.run(Handshaker.java:992)
        at sun.security.ssl.Handshaker$1.run(Handshaker.java:989)
        at com.oracle.svm.core.jdk.Target_java_security_AccessController.doPrivileged(SecuritySubstitutions.java:97)
        at sun.security.ssl.Handshaker$DelegatedTask.run(Handshaker.java:1467)
        at io.netty.handler.ssl.SslHandler.runDelegatedTasks(SslHandler.java:1435)
        at io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1343)
        at io.netty.handler.ssl.SslHandler.decodeJdkCompatible(SslHandler.java:1177)
        at io.netty.handler.ssl.SslHandler.decode(SslHandler.java:1221)
        at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:489)
        at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:428)
        ... 18 more
Caused by: java.security.cert.CertificateException: No X509TrustManager implementation available
        at java.lang.Throwable.<init>(Throwable.java:265)
        at java.lang.Exception.<init>(Exception.java:66)
        at java.security.GeneralSecurityException.<init>(GeneralSecurityException.java:56)
        at java.security.cert.CertificateException.<init>(CertificateException.java:56)
        at sun.security.ssl.DummyX509TrustManager.checkServerTrusted(SSLContextImpl.java:1198)
        at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1601)
        ... 30 more

works fine on graal sdk.

[INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building native-secure-app 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [WARNING] The POM for io.vertx:vertx-core:jar:3.6.0-SNAPSHOT is missing, no dependency information available [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.201 s [INFO] Finished at: 2018-10-05T14:34:58-07:00 [INFO] Final Memory: 16M/479M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project myapp: Could not resolve dependencies for project com.example:myapp:jar:0.0.1-SNAPSHOT: Could not find artifact io.vertx:vertx-core:jar:3.6.0-SNAPSHOT -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

Sorry, you need to allow snapshots from maven, use this settings.xml https://github.com/pmlopes/openfaas-svm-vertx/blob/develop/template/vertx-svm/settings.xml and just run as:

mvn --settings settings.xml -Pnative-image