• 0 Votes
    7 Posts
    122 Views
    B
    @randomrnti Just curious, which NB-IoT network would be that? Is it via PyCom Vodafone NB-IoT sim? or you have setup a MQTT Server on a dedicated server and made that server reachable from Vodafone NB-IoT SIM?
  • [solved] MQTT and tls

    MicroPython mqtt tls ssl
    9
    1 Votes
    9 Posts
    1k Views
    M
    Just want to share actual working sample. NOTE: Checking server certificate is DISABLED in this case. You need CERT_REQUIRED or CERT_REQUIRED judging from documentation. But, by some reason in my build ussl.CERT_REQUIRED gave "...object has no attribute...". # --------------------------------------------- # Tested setup: # - Traefik Proxy 2.5 (Let's Encrypt Cert) # - Mosquitto 2.0.16 # - MicroPython 1.17 # ---------------------------------------------- from umqtt.simple import MQTTClient HOST = "<HOST>" # Without server_hostname it wan't connect (by some reason) ssl_params = {"server_hostname": HOST} c = MQTTClient("<client_id>", server=HOST, port=8883, user="<username>", password="<password>", # Need keepalive > 0 or got MqttException(2) keepalive=10, ssl=True, ssl_params=ssl_params)
  • Any working examples of an HTTPS web server?

    WiPy 2&3 wipy 2 webserver https tls
    2
    0 Votes
    2 Posts
    556 Views
    T
    Following-up … if I add an exception handler and keep trying to connect, I get a bunch of different error numbers: Uncaught exception: -17168 Uncaught exception: -10368 Uncaught exception: -10368 Uncaught exception: -10368 Uncaught exception: -1 Uncaught exception: -32512 Uncaught exception: -29312 Uncaught exception: -16 Uncaught exception: -10368 Uncaught exception: -4480 Uncaught exception: -19840 Uncaught exception: -4480 Uncaught exception: -16912 Any advice on how / where to look those up? Cheers, Tim
  • Restrict TLS to V1.2 only

    FiPy fipy ussl ssl tls
    1
    0 Votes
    1 Posts
    545 Views
    No one has replied
  • 802.1X questions

    LoPy wifi eap tls peap
    2
    0 Votes
    2 Posts
    990 Views
    G
    Hello, I'm having a similar problem when trying to connect using EAP-PEAP. Has anyone gotten any results? Thank you.
  • SNI on TLS connections?

    LoPy tls sni
    2
    0 Votes
    2 Posts
    750 Views
    T
    Sorry, looks like this was my fault. Looks like it is working as intended but I messed something on the server. Got to do some more testing though... @jmarcelino (btw, congrats for you position at pycom), Still you might wanne document the parameter server_hostname on the ussl.wrap_socket function. A just noticed that cert mismatch does not rise ussl.SSLError but OSError which is therefore wrong in the docs too.