[FogBugz #733] Synchronisation Exchange Echoue #796

Open
opened 2023-07-04 10:22:13 +02:00 by fbenoist68 · 17 comments

Assigned To: CLOSED
Project: Mobile Portal
Area: Divers
Category: Bogue
Priority: A fixer impérativement

Assigned To: CLOSED Project: Mobile Portal Area: Divers Category: Bogue Priority: A fixer impérativement
Poster
Owner

Event ID: 3886
Date: 2022-10-27T06:41:21Z
Person: Frederik Benoist
Description: Fermé par Frederik Benoist

Event ID: 3886 Date: 2022-10-27T06:41:21Z Person: Frederik Benoist Description: Fermé par Frederik Benoist
Poster
Owner

Event ID: 3885
Date: 2022-10-27T06:41:21Z
Person: Frederik Benoist
Description: Résolu (Corrigé) and assigned to Frederik Benoist by Frederik Benoist

Event ID: 3885 Date: 2022-10-27T06:41:21Z Person: Frederik Benoist Description: Résolu (Corrigé) and assigned to Frederik Benoist by Frederik Benoist
Poster
Owner

Event ID: 3836
Date: 2021-11-07T20:38:13Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist

Event ID: 3836 Date: 2021-11-07T20:38:13Z Person: Frederik Benoist Description: Modifié par Frederik Benoist
Poster
Owner

Event ID: 3835
Date: 2021-11-07T17:25:21Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist

le 07/11/2021 on a migré le serveur Exchange 2007/SP3 vers Exchange 2010/SP3. Ce n'est plus le même serveur. Il faut changer l'url et quelques paramètres

Event ID: 3835 Date: 2021-11-07T17:25:21Z Person: Frederik Benoist Description: Modifié par Frederik Benoist le 07/11/2021 on a migré le serveur Exchange 2007/SP3 vers Exchange 2010/SP3. Ce n'est plus le même serveur. Il faut changer l'url et quelques paramètres
Poster
Owner

Event ID: 3834
Date: 2021-08-22T05:55:11Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist

Avec l'aide de Rochdi



Le problème est dû au fait le server Exchange utilise un algorithme de chiffrage très ancien :

Il n'est pas activé par défaut par le JAVA.

Pour ce faire, on doit désactiver la ligne suivante dans /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.261.x86_64/jre/lib/security/java.security :

jdk.tls.disabledAlgorithms=SSLv3, RC4, DES, MD5withRSA, DH keySize < 1024, <br />
    EC keySize < 224, 3DES_EDE_CBC, anon, NULL



J'ai fait la modification. Est-ce que tu peux, stp, redémarrer Glassfish puis retester ton web appli ?

Annule, stp, les modifications que tu as effectuées au niveau de la configuration Glassfish avant de le redémarrer.



Pour info : j'ai reproduit le problème en local en utilisant la class java que tu m'as fournie et après plusieurs tentatives j'ai pu identifier l'origine du problème :  Cipher Suite: SSL_RSA_WITH_RC4_128_MD5

C'est l'algo de chiffrage qui est désactivé par défaut dans la version 1.7.0.261

Event ID: 3834 Date: 2021-08-22T05:55:11Z Person: Frederik Benoist Description: Modifié par Frederik Benoist Avec l&#39;aide de Rochdi<br /> <br /> Le probl&#232;me est d&#251; au fait le server Exchange utilise un algorithme de chiffrage tr&#232;s ancien : <br /> Il n&#39;est pas activ&#233; par d&#233;faut par le JAVA.<br /> Pour ce faire, on doit d&#233;sactiver la ligne suivante dans /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.261.x86_64/jre/lib/security/java.security : <br /> jdk.tls.disabledAlgorithms=SSLv3, RC4, DES, MD5withRSA, DH keySize &lt; 1024, \<br /> &nbsp; &nbsp; EC keySize &lt; 224, 3DES_EDE_CBC, anon, NULL<br /> <br /> J&#39;ai fait la modification. Est-ce que tu peux, stp, red&#233;marrer Glassfish puis retester ton web appli ?<br /> Annule, stp, les modifications que tu as effectu&#233;es au niveau de la configuration Glassfish avant de le red&#233;marrer.<br /> <br /> Pour info : j&#39;ai reproduit le probl&#232;me en local en utilisant la class java que tu m&#39;as fournie et apr&#232;s plusieurs tentatives j&#39;ai pu identifier l&#39;origine du probl&#232;me :&nbsp; Cipher Suite: SSL_RSA_WITH_RC4_128_MD5<br /> C&#39;est l&#39;algo de chiffrage qui est d&#233;sactiv&#233; par d&#233;faut dans la version 1.7.0.261<br />
Poster
Owner

Event ID: 3833
Date: 2021-08-22T05:47:04Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist

Essai avec cela (et tous les autres protocoles)



Mais rien ne marche ...

Event ID: 3833 Date: 2021-08-22T05:47:04Z Person: Frederik Benoist Description: Modifié par Frederik Benoist Essai avec cela (et tous les autres protocoles)<br /> <br /> Mais rien ne marche ...
Poster
Owner

Event ID: 3832
Date: 2021-07-19T21:00:19Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist

Event ID: 3832 Date: 2021-07-19T21:00:19Z Person: Frederik Benoist Description: Modifié par Frederik Benoist
Poster
Owner

Event ID: 3831
Date: 2021-07-19T20:57:13Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist

nmap --script ssl-enum-ciphers -p 443 {HOSTNAME}


Event ID: 3831 Date: 2021-07-19T20:57:13Z Person: Frederik Benoist Description: Modifié par Frederik Benoist nmap --script ssl-enum-ciphers -p 443 {HOSTNAME}<br /> <br />
Poster
Owner

Event ID: 3830
Date: 2021-07-19T20:47:30Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist

https://stackoverflow.com/questions/28908835/ssl-peer-shut-down-incorrectly-in-java



Please run your client with -Djavax.net.debug=ssl,handshake





That is a problem of security protocol. I am using TLSv1 but the host accept only TLSv1.1 and TLSv1.2 then I changed the protocol in Java with the instruction below:



System.setProperty("https.protocols", "TLSv1.1");

Event ID: 3830 Date: 2021-07-19T20:47:30Z Person: Frederik Benoist Description: Modifié par Frederik Benoist https://stackoverflow.com/questions/28908835/ssl-peer-shut-down-incorrectly-in-java<br /> <br /> Please run your client with -Djavax.net.debug=ssl,handshake <br /> <br /> <br /> That is a problem of security protocol. I am using TLSv1 but the host accept only TLSv1.1 and TLSv1.2 then I changed the protocol in Java with the instruction below:<br /> <br /> System.setProperty(&quot;https.protocols&quot;, &quot;TLSv1.1&quot;);<br />
Poster
Owner

Event ID: 3829
Date: 2021-07-19T13:58:12Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist

https://stackoverflow.com/questions/39157422/how-to-enable-tls-1-2-in-java-7

Event ID: 3829 Date: 2021-07-19T13:58:12Z Person: Frederik Benoist Description: Modifié par Frederik Benoist https://stackoverflow.com/questions/39157422/how-to-enable-tls-1-2-in-java-7
Poster
Owner

Event ID: 3828
Date: 2021-07-19T13:58:08Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist

Event ID: 3828 Date: 2021-07-19T13:58:08Z Person: Frederik Benoist Description: Modifié par Frederik Benoist
Poster
Owner

Event ID: 3827
Date: 2021-07-19T13:35:14Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist

Other alternative to command line is add the JVM properties manually to the Glassfish domain.xml file.



You can find that file in: pat-to-glassgish\Glassfish\glassfish\domains\yourdomain\config



There you will see a secion for jvm-options, like this:



<jvm-options>-Dhttps.protocols=TLSv1.2</jvm-options>

You can add yours in there.



I hope it helps :-)

Event ID: 3827 Date: 2021-07-19T13:35:14Z Person: Frederik Benoist Description: Modifié par Frederik Benoist Other alternative to command line is add the JVM properties manually to the Glassfish domain.xml file.<br /> <br /> You can find that file in: pat-to-glassgish\Glassfish\glassfish\domains\yourdomain\config<br /> <br /> There you will see a secion for jvm-options, like this:<br /> <br /> &lt;jvm-options&gt;-Dhttps.protocols=TLSv1.2&lt;/jvm-options&gt;<br /> You can add yours in there.<br /> <br /> I hope it helps :-)
Poster
Owner

Event ID: 3826
Date: 2021-07-19T13:13:23Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist

System.setProperty("https.protocols", "TLSv1,TLSv1.1,TLSv1.2");

Event ID: 3826 Date: 2021-07-19T13:13:23Z Person: Frederik Benoist Description: Modifié par Frederik Benoist System.setProperty(&quot;https.protocols&quot;, &quot;TLSv1,TLSv1.1,TLSv1.2&quot;);
Poster
Owner

Event ID: 3825
Date: 2021-07-19T13:12:57Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist

Event ID: 3825 Date: 2021-07-19T13:12:57Z Person: Frederik Benoist Description: Modifié par Frederik Benoist
Poster
Owner

Event ID: 3824
Date: 2021-07-19T13:10:25Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist

Event ID: 3824 Date: 2021-07-19T13:10:25Z Person: Frederik Benoist Description: Modifié par Frederik Benoist
Poster
Owner

Event ID: 3823
Date: 2021-07-17T16:38:30Z
Person: Frederik Benoist
Description: Attribué à Frederik Benoist par Frederik Benoist

Event ID: 3823 Date: 2021-07-17T16:38:30Z Person: Frederik Benoist Description: Attribué à Frederik Benoist par Frederik Benoist
Poster
Owner

Event ID: 3822
Date: 2021-07-17T16:38:29Z
Person: Frederik Benoist
Description: Ouvert par Frederik Benoist

La synchronisation exchange ne fonctionne plus

Event ID: 3822 Date: 2021-07-17T16:38:29Z Person: Frederik Benoist Description: Ouvert par Frederik Benoist La synchronisation exchange ne fonctionne plus<br />
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: fbenoist68/mobileportal#796
There is no content yet.