[SOLVED]: javax.net.ssl.SSLHandshakeException

Benutzeravatar
Thomas_H
Beiträge: 488
Registriert: 09 Jun 2010, 11:57
Wohnort: Havelland

[SOLVED]: javax.net.ssl.SSLHandshakeException

Beitragvon Thomas_H » 05 Mai 2021, 12:47

Moinsens,

nachdem ich den OpsiConfiged auf Linux (Debian mit Kernel 4.9.0-7-amd64) neu installiert hatte, tauchte der Fehler

Code: Alles auswählen

Keine Verbindung
javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)


auf.

Auf einem Windows-Rechner funktioniert es.

Das komplette Logfile, inclusive schließen des Programms:

Code: Alles auswählen

[3] (INFO)     [2021-05-05  12:34:05.420]    [Thread[main,5,main]]         Messages, getResource from de/uib/messages/configed                                                                                 
[3] (INFO)     [2021-05-05  12:34:05.478]    [Thread[main,5,main]]         getLocales: [de, en, fr]
[3] (INFO)     [2021-05-05  12:34:05.478]    [Thread[main,5,main]]         Messages, getSelectedLocale de
[3] (INFO)     [2021-05-05  12:34:05.478]    [Thread[main,5,main]]         selected locale characteristic de
[3] (INFO)     [2021-05-05  12:34:05.478]    [Thread[main,5,main]]         system information:
[3] (INFO)     [2021-05-05  12:34:05.479]    [Thread[main,5,main]]          configed version 4.1.9.8.5 (2021/04/12)
[3] (INFO)     [2021-05-05  12:34:05.479]    [Thread[main,5,main]]          running by java version 1.8.0_292
[3] (INFO)     [2021-05-05  12:34:05.480]    [Thread[main,5,main]]         vendor:: Oracle Corporation
[3] (INFO)     [2021-05-05  12:34:05.480]    [Thread[main,5,main]]         awt.graphicsenv:: sun.awt.X11GraphicsEnvironment
[3] (INFO)     [2021-05-05  12:34:05.480]    [Thread[main,5,main]]         awt.printerjob:: sun.print.PSPrinterJob
[3] (INFO)     [2021-05-05  12:34:05.481]    [Thread[main,5,main]]         class.path:: /usr/share/opsi-configed/configed.jar
[3] (INFO)     [2021-05-05  12:34:05.481]    [Thread[main,5,main]]         class.version:: 52.0
[3] (INFO)     [2021-05-05  12:34:05.481]    [Thread[main,5,main]]         endorsed.dirs:: /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/endorsed
[3] (INFO)     [2021-05-05  12:34:05.481]    [Thread[main,5,main]]         ext.dirs:: /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext:/usr/java/packages/lib/ext
[3] (INFO)     [2021-05-05  12:34:05.481]    [Thread[main,5,main]]         home:: /usr/lib/jvm/java-8-openjdk-amd64/jre
[3] (INFO)     [2021-05-05  12:34:05.481]    [Thread[main,5,main]]         io.tmpdir:: /tmp
[3] (INFO)     [2021-05-05  12:34:05.481]    [Thread[main,5,main]]         library.path:: /usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib
[3] (INFO)     [2021-05-05  12:34:05.481]    [Thread[main,5,main]]         runtime.name:: OpenJDK Runtime Environment
[3] (INFO)     [2021-05-05  12:34:05.481]    [Thread[main,5,main]]         runtime.version:: 1.8.0_292-8u292-b10-0+deb9u1-b10
[3] (INFO)     [2021-05-05  12:34:05.482]    [Thread[main,5,main]]         specification.name:: Java Platform API Specification
[3] (INFO)     [2021-05-05  12:34:05.482]    [Thread[main,5,main]]         specification.vendor:: Oracle Corporation
[3] (INFO)     [2021-05-05  12:34:05.482]    [Thread[main,5,main]]         specification.version:: 1.8
[3] (INFO)     [2021-05-05  12:34:05.482]    [Thread[main,5,main]]         vendor.url:: http://java.oracle.com/
[3] (INFO)     [2021-05-05  12:34:05.482]    [Thread[main,5,main]]         vendor.url.bug:: http://bugreport.sun.com/bugreport/
[3] (INFO)     [2021-05-05  12:34:05.482]    [Thread[main,5,main]]         vm.info:: mixed mode
[3] (INFO)     [2021-05-05  12:34:05.482]    [Thread[main,5,main]]         vm.name:: OpenJDK 64-Bit Server VM
[3] (INFO)     [2021-05-05  12:34:05.483]    [Thread[main,5,main]]         vm.specification.name:: Java Virtual Machine Specification
[3] (INFO)     [2021-05-05  12:34:05.483]    [Thread[main,5,main]]         vm.specification.vendor:: Oracle Corporation
[3] (INFO)     [2021-05-05  12:34:05.483]    [Thread[main,5,main]]         vm.specification.version:: 1.8
[3] (INFO)     [2021-05-05  12:34:05.483]    [Thread[main,5,main]]         vm.vendor:: Oracle Corporation
[3] (INFO)     [2021-05-05  12:34:05.483]    [Thread[main,5,main]]         vm.version:: 25.292-b10
[3] (INFO)     [2021-05-05  12:34:05.483]    [Thread[main,5,main]]         javax.accessibility.assistive_technologies:: org.GNOME.Accessibility.AtkWrapper
[3] (INFO)     [2021-05-05  12:34:05.483]    [Thread[main,5,main]]         sun.java.command:: /usr/share/opsi-configed/configed.jar -r 0 --ssh-immediate-connect y
[3] (INFO)     [2021-05-05  12:34:05.483]    [Thread[main,5,main]]         sun.java.launcher:: SUN_STANDARD
[3] (INFO)     [2021-05-05  12:34:05.486]    [Thread[main,5,main]]          we get max memory 954 MB
[3] (INFO)     [2021-05-05  12:34:05.520]    [Thread[main,5,main]]         SSHConnectionInfo getInstance, until now instance null
[3] (INFO)     [2021-05-05  12:34:05.523]    [Thread[main,5,main]]      de.uib.opsicommand.sshcommand.SSHConnectionInfo   setHost, instance is @:22|no sshkey
[3] (INFO)     [2021-05-05  12:34:05.523]    [Thread[main,5,main]]         SSHConnectionInfo  getHostnameFromOpsihost null
[3] (INFO)     [2021-05-05  12:34:05.523]    [Thread[main,5,main]]         SSHConnectionInfo  getHostnameFromOpsihost result null
[3] (INFO)     [2021-05-05  12:34:05.524]    [Thread[main,5,main]]         SSHConnectionInfo getInstance, until now instance @null:22|no sshkey
[3] (INFO)     [2021-05-05  12:34:05.524]    [Thread[main,5,main]]         SSHConnectionInfo getInstance, until now instance null@null:22|no sshkey
[3] (INFO)     [2021-05-05  12:34:05.524]    [Thread[main,5,main]]         SSHConnectionInfo getInstance, until now instance null@null:22|no sshkey
[3] (INFO)     [2021-05-05  12:34:05.524]    [Thread[main,5,main]]         useKeyfile false now keyfilepath
[3] (INFO)     [2021-05-05  12:34:05.532]    [Thread[AWT-EventQueue-1,6,main]]      de.uib.configed.ConfigedMain   searching saved states in /home/administrator/.configed
[3] (INFO)     [2021-05-05  12:34:05.534]    [Thread[AWT-EventQueue-1,6,main]]      de.uib.configed.ConfigedMain   saved states location /home/administrator/.configed
[3] (INFO)     [2021-05-05  12:34:05.536]    [Thread[AWT-EventQueue-1,6,main]]      de.uib.configed.ConfigedMain   readLocallySavedServerNames  result [192.168.0.3:4447, 192.168.0.14:4447]
[3] (INFO)     [2021-05-05  12:34:05.613]    [Thread[AWT-EventQueue-1,6,main]]      de.uib.configed.gui.DPassword   smallFramesDistanceFromLeft 80
[3] (INFO)     [2021-05-05  12:34:05.614]    [Thread[AWT-EventQueue-1,6,main]]         Globals: x 0 + 80, y 0 + 80
[3] (INFO)     [2021-05-05  12:34:05.618]    [Thread[AWT-EventQueue-1,6,main]]      de.uib.configed.gui.DPassword   checkTrySSH  true
[3] (INFO)     [2021-05-05  12:34:05.638]    [Thread[AWT-EventQueue-1,6,main]]          OS Linux  Version 4.9.0-7-amd64
[3] (INFO)     [2021-05-05  12:34:05.684]    [Thread[AWT-EventQueue-1,6,main]]      de.uib.configed.ConfigedMain   become interactive
[3] (INFO)     [2021-05-05  12:34:05.702]    [Thread[AWT-EventQueue-1,6,main]]      de.uib.configed.gui.DPassword   ------------ activate
[3] (INFO)     [2021-05-05  12:34:12.254]    [Thread[AWT-EventQueue-1,6,main]]      de.uib.configed.gui.DPassword   ok_action
[3] (INFO)     [2021-05-05  12:34:12.254]    [Thread[AWT-EventQueue-1,6,main]]      de.uib.configed.gui.DPassword   started  try_connecting
[3] (INFO)     [2021-05-05  12:34:12.259]    [Thread[AWT-EventQueue-1,6,main]]      de.uib.configed.gui.DPassword   invoking PersistenceControllerFactory host, user, 192.168.0.3:4447, adminuser
[3] (INFO)     [2021-05-05  12:34:12.263]    [Thread[AWT-EventQueue-1,6,main]]      de.uib.configed.gui.DPassword$WaitInfo   created with timeout 100000
[3] (INFO)     [2021-05-05  12:34:12.353]    [Thread[AWT-EventQueue-1,6,main]]         Globals: x 0 + 618, y 0 + 448
[3] (INFO)     [2021-05-05  12:34:12.353]    [Thread[AWT-EventQueue-1,6,main]]      de.uib.configed.gui.DPassword   we are in EventDispatchThread true
[3] (INFO)     [2021-05-05  12:34:12.354]    [Thread[AWT-EventQueue-1,6,main]]      de.uib.configed.gui.DPassword   we are in applet false
[3] (INFO)     [2021-05-05  12:34:12.354]    [Thread[AWT-EventQueue-1,6,main]]      de.uib.configed.gui.DPassword     Thread.currentThread() Thread[AWT-EventQueue-1,6,main]
[3] (INFO)     [2021-05-05  12:34:12.354]    [Thread[AWT-EventQueue-1,6,main]]      de.uib.configed.gui.DPassword   is local app  true
[3] (INFO)     [2021-05-05  12:34:12.354]    [Thread[AWT-EventQueue-1,6,main]]      de.uib.configed.gui.DPassword   start WaitingWorker
[3] (INFO)     [2021-05-05  12:34:12.373]    [Thread[Thread-3,6,main]]      de.uib.configed.gui.DPassword$6   get persis
[3] (INFO)     [2021-05-05  12:34:12.373]    [Thread[AWT-EventQueue-1,6,main]]         SSHConnectionInfo getInstance, until now instance null@null:22|no sshkey
[3] (INFO)     [2021-05-05  12:34:12.373]    [Thread[AWT-EventQueue-1,6,main]]         SSHConnectionInfo getInstance, until now instance adminuser@null:22|no sshkey
[3] (INFO)     [2021-05-05  12:34:12.381]    [Thread[Thread-3,6,main]]         getNewPersistenceController
[3] (INFO)     [2021-05-05  12:34:12.424]    [Thread[Thread-3,6,main]]      de.uib.opsidatamodel.OpsiserviceRawDataPersistenceController   start construction,
connect to 192.168.0.3:4447 as adminuser
[3] (INFO)     [2021-05-05  12:34:12.425]    [Thread[Thread-3,6,main]]      de.uib.configed.type.user.OpsiUser   created adminuser
[3] (INFO)     [2021-05-05  12:34:12.431]    [Thread[Thread-3,6,main]]      de.uib.opsicommand.JSONthroughHTTPS   try to install provider for TLSv1.2
[3] (INFO)     [2021-05-05  12:34:12.698]    [Thread[Thread-3,6,main]]         a PersistenceController initiated by default, try RawData false
[3] (INFO)     [2021-05-05  12:34:12.698]    [Thread[Thread-3,6,main]]      de.uib.opsidatamodel.OpsiserviceRawDataPersistenceController   trying to make connection
[3] (INFO)     [2021-05-05  12:34:12.698]    [Thread[Thread-3,6,main]]      de.uib.opsicommand.JSONthroughHTTPS   retrieveJSONObjects started
[3] (INFO)     [2021-05-05  12:34:12.711]    [Thread[Thread-3,6,main]]      de.uib.opsicommand.JSONthroughHTTPS   produceConnection, url; https://192.168.0.3:4447/rpc
[3] (INFO)     [2021-05-05  12:34:12.931]    [Thread[Thread-3,6,main]]      de.uib.opsicommand.JSONthroughHTTPS   retrieveJSONObject by connection sun.net.www.protocol.https.DelegateHttpsURLConnection:https://192.168.0.3:4447/rpc
[3] (INFO)     [2021-05-05  12:34:12.932]    [Thread[Thread-3,6,main]]      de.uib.opsicommand.JSONthroughHTTPS   retrieveJSONObject request properties {Connection=[close], User-Agent=[opsi config editor 4.1.9.8.5], Accept-Encoding=[gzip]}
[3] (INFO)     [2021-05-05  12:34:12.932]    [Thread[Thread-3,6,main]]      de.uib.opsicommand.JSONthroughHTTPS   retrieveJSONObject request method POST
[3] (INFO)     [2021-05-05  12:34:12.932]    [Thread[Thread-3,6,main]]      de.uib.opsicommand.JSONthroughHTTPS   https protocols given by system TLSv1
[3] (INFO)     [2021-05-05  12:34:12.932]    [Thread[Thread-3,6,main]]      de.uib.opsicommand.JSONthroughHTTPS   retrieveJSONObjects request old or  new session
[3] (INFO)     [2021-05-05  12:34:12.932]    [Thread[Thread-3,6,main]]      de.uib.opsicommand.JSONthroughHTTPS   retrieveJSONObjects connected  new session
[3] (INFO)     [2021-05-05  12:34:13.046]    [Thread[Thread-3,6,main]]      de.uib.utilities.thread.WaitCursor    stop wait cursor 2, was located at (de.uib.opsicommand.JSONthroughHTTPS)
[1] (ERROR)    [2021-05-05  12:34:13.047]    [Thread[Thread-3,6,main]]         Exception on connecting, javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
[3] (INFO)     [2021-05-05  12:34:13.053]    [Thread[Thread-3,6,main]]      de.uib.opsidatamodel.OpsiserviceRawDataPersistenceController   connection does not work
[3] (INFO)     [2021-05-05  12:34:13.053]    [Thread[Thread-3,6,main]]      de.uib.opsidatamodel.OpsiserviceRawDataPersistenceController   tried to make connection result false
[3] (INFO)     [2021-05-05  12:34:13.054]    [Thread[Thread-3,6,main]]      de.uib.configed.gui.DPassword$6   got persis, == null false
[3] (INFO)     [2021-05-05  12:34:13.054]    [Thread[Thread-3,6,main]]      de.uib.configed.gui.DPassword$6   waitingTask can be set to ready
[3] (INFO)     [2021-05-05  12:34:13.102]    [Thread[AWT-EventQueue-1,6,main]]      de.uib.utilities.thread.WaitingWorker   process, millis/estimatedTotalWaitMillis  0.0517
[3] (INFO)     [2021-05-05  12:34:13.375]    [Thread[SwingWorker-pool-1-thread-1,5,main]]      de.uib.utilities.thread.WaitingWorker    doInBackground finished: ready, stopped, elapsedMillis < waitingSleeper.getWaitingMillis() true, false, false
[3] (INFO)     [2021-05-05  12:34:13.409]    [Thread[AWT-EventQueue-1,6,main]]      de.uib.utilities.thread.WaitingWorker   process, millis/estimatedTotalWaitMillis  0.1018
[3] (INFO)     [2021-05-05  12:34:13.410]    [Thread[AWT-EventQueue-1,6,main]]      de.uib.utilities.thread.WaitingWorker   done,  stopped is false
[3] (INFO)     [2021-05-05  12:34:13.410]    [Thread[AWT-EventQueue-1,6,main]]      de.uib.utilities.thread.WaitCursor    stop wait cursor 1, was located at (ok_action)
[3] (INFO)     [2021-05-05  12:34:13.411]    [Thread[AWT-EventQueue-1,6,main]]         PersistenceControllerFactory getConnectionState Error
[3] (INFO)     [2021-05-05  12:34:13.411]    [Thread[AWT-EventQueue-1,6,main]]         PersistenceControllerFactory getConnectionState Error
[3] (INFO)     [2021-05-05  12:34:13.412]    [Thread[AWT-EventQueue-1,6,main]]      de.uib.configed.gui.DPassword$WaitInfo   not connected, timeout or not authorized
[3] (INFO)     [2021-05-05  12:34:13.412]    [Thread[AWT-EventQueue-1,6,main]]         PersistenceControllerFactory getConnectionState Error
[3] (INFO)     [2021-05-05  12:34:13.548]    [Thread[AWT-EventQueue-1,6,main]]      de.uib.utilities.thread.WaitCursor$3   seemed to be last living instance
[3] (INFO)     [2021-05-05  12:34:15.104]    [Thread[AWT-EventQueue-1,6,main]]         PersistenceControllerFactory getConnectionState Error
[3] (INFO)     [2021-05-05  12:34:15.137]    [Thread[AWT-EventQueue-1,6,main]]      de.uib.configed.gui.DPassword   ------------ activate
[3] (INFO)     [2021-05-05  12:34:18.154]    [Thread[AWT-EventQueue-1,6,main]]      de.uib.configed.ConfigedMain   start closing instance, checkdirty false
[3] (INFO)     [2021-05-05  12:34:18.165]    [Thread[AWT-EventQueue-1,6,main]]      de.uib.utilities.observer.RunningInstances   created for class de.uib.configed.gui.FStartWakeOnLan
[3] (INFO)     [2021-05-05  12:34:18.166]    [Thread[AWT-EventQueue-1,6,main]]      de.uib.utilities.observer.RunningInstances    isEmpty true
[3] (INFO)     [2021-05-05  12:34:18.178]    [Thread[AWT-EventQueue-1,6,main]]      de.uib.configed.ConfigedMain   close instance result true
[3] (INFO)     [2021-05-05  12:34:18.178]    [Thread[AWT-EventQueue-1,6,main]]         regularly exiting app with code 0



Der Anmeldebildschirm des opsi-configed erscheint aber und zeigt "Aktive JDK-Umgebunng: Oracle Corporation 1.8.0_292" an.
Der Fehler kommt mit und ohne aktiviertem "SSH-Verbindung direkt starten" bzw. "HTTPS-Verbindung gzip-komprimiert"


Was hab ich nun wieder kaputtgemacht?

Gruesskens,

Thomas_H
Zuletzt geändert von Thomas_H am 19 Mai 2021, 11:09, insgesamt 1-mal geändert.
Kennst Du schon die WIKI für OPSI-Scripte? Fertige Installationsscripte bekommen und ablegen unter OPSI-Wiki
Aus dem Glashaus :) : UIB bietet auch Schulungen und Supportverträge für Opsi an.
Bild

Benutzeravatar
Thomas_H
Beiträge: 488
Registriert: 09 Jun 2010, 11:57
Wohnort: Havelland

Re: javax.net.ssl.SSLHandshakeException

Beitragvon Thomas_H » 18 Mai 2021, 14:39

UI.... O.O ist der Fehler so unbekannt? Hat keiner eine Idee, woran es liegen könnte?

Grüsskens,

Thomas_H
Kennst Du schon die WIKI für OPSI-Scripte? Fertige Installationsscripte bekommen und ablegen unter OPSI-Wiki
Aus dem Glashaus :) : UIB bietet auch Schulungen und Supportverträge für Opsi an.
Bild

Benutzeravatar
wolfbardo
uib-Team
Beiträge: 1238
Registriert: 01 Jul 2008, 12:10

Re: javax.net.ssl.SSLHandshakeException

Beitragvon wolfbardo » 18 Mai 2021, 21:37

da steckt im java aufruf noch ne andere ciphersuite oder tlsv1 drin.
Entsprechend den Aufruf analog dem funtoierenden anpassen

Gruss
Bardo Wolf


opsi remote-workshops

https://uib.de/de/support-schulung/schulung/

Basis

14.-17.06. 2021
06.-09.09 2021

Einführung in die Software-Paketierung
09./10.06 2021

opsi support by uib gmbh

http://www.uib.de

Benutzeravatar
Thomas_H
Beiträge: 488
Registriert: 09 Jun 2010, 11:57
Wohnort: Havelland

Re: javax.net.ssl.SSLHandshakeException

Beitragvon Thomas_H » 19 Mai 2021, 11:09

Hallo Wolf,

vielen Dank. Ein gleicher Beitrag wurde nur einen Tag später nach meinem gepostet und sehr ausführlich beantwortet. In sofern wurde schnell klar, was Du meinst.

Hat natürlich geholfen!

https://forum.opsi.org/viewtopic.php?f=7&t=12289

Grüsskens,

Thomas_H
Kennst Du schon die WIKI für OPSI-Scripte? Fertige Installationsscripte bekommen und ablegen unter OPSI-Wiki
Aus dem Glashaus :) : UIB bietet auch Schulungen und Supportverträge für Opsi an.
Bild