]> SAFE projects GIT repository - jmp/mailleur/commitdiff
Working on certificate exchange and recover line
authorJean-Marc Pigeon (Delson) <jmp@safe.ca>
Sun, 8 Jun 2025 20:52:11 +0000 (16:52 -0400)
committerJean-Marc Pigeon (Delson) <jmp@safe.ca>
Sun, 8 Jun 2025 20:52:11 +0000 (16:52 -0400)
Makefile
lib/unitls.c

index 930e1990e3faa491d8358016b6810fecd338731c..6e39a490e8afdcbaea612e69fa6522bea1218d02 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -218,13 +218,12 @@ go465     :
 xxx    :
                @ clear
                @ openssl s_client                      \
-                       -crlf                           \
-                       --showcerts                     \
+                       -msg                            \
                        -key certs/localhost-key.pem    \
                        -cert certs/localhost-cert.pem  \
                        -CAfile certs/root-safe_CA.pem  \
                        -starttls smtp                  \
-                       -connect smtp1.example.com:25 
+                       -connect courriel.colba.net:25
 
 #                      -showcerts                      
 #                      -tls1_2
@@ -232,6 +231,7 @@ xxx :
 #                      -connect mailprod1.safe.ca:25
 #                      -connect $(TESTSRV):$(TESTPORT) 
 #                      -connect smtp.google.com:25
+#                      -connect courriel.colba.net:25
 #
 #testing TLS with google
 tlsref:        
index 244e1fb693e5a0243ef8b510e65a768b051e2352..2482e0b157f802de2cb47f8fd3cb944bf643cecd 100644 (file)
@@ -189,7 +189,6 @@ while (proceed==true) {
 
         (void) snprintf(data,sizeof(data),"%s_%s",cenv[i],certext);
         certs[i]=getenv(data);
-        (void) rou_alert(0,"%s JMPDBG certs[%d]=<%s>",OPEP,i,certs[i]);
         if (certs[i]==(char *)0) {
           (void) rou_alert(0,"%s Missing <%s> environment variable (config?)",
                               OPEP,data);
@@ -199,7 +198,6 @@ while (proceed==true) {
       //Set the verify mode
       if (certs[3]!=(char *)0) {  //env value can be missing
         if (atoi(certs[3])==1) {
-          (void) rou_alert(0,"%s JMPDBG verifiyng certificate",OPEP);
           mode=SSL_VERIFY_PEER; //to make sure peer certificate is OK
           }
         }