Dear Manuel , 
    Thanks for your post, I founded something very interesting on it.
    You are using "insecure" flag in your mosquitto_pub/sub clients.
    I tryed my certs using the "insecure" option  and worked as well ,
    then also  tested connection with other client , mqttfx an also
    works.
    So the issue is there, in the "insecure" flag on the client side.
    
    Reading help, it says:
     --insecure : do not check that the server certificate hostname
    matches the remote
                  hostname.
    
    So .. 
    How should I include the server hostname during ca.crt server
    generation?
    And , where  does mosquitto_sub client takes the server hostname ?
    is it from the -h flag? 
    
    
    Anyway , thanks for your help , I think Im very close to get it.
    
    
    
    
On 31/07/18 13:27, Manuel Domínguez
      Dorado wrote:
    
    
      
        Hi Leandro,
        
        
        I wrote a post that perhaps could be of interest for you.
        
        
        
        
        
        I's spanish but commands are easy to follow and you can use
          Google Translator :-)
        
        
        Hope it helps!
        
        
        Best regards. 
        
        
        
       
      
      
      
      
      _______________________________________________
mosquitto-dev mailing list
mosquitto-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/mosquitto-dev