Skip to content

Client certificate authentication not working #86

@numericOverflow

Description

@numericOverflow

I'm on a (rooted) Samsung Note10+ running Android 10, trying to connect to a personal mosquitto broker I'm running. Authentication is via certificates only, and that works fine using the same certificates on my windows machine via MQTT-Explorer (v0.3.5). Given that, I don't think the issue is with the certs themselves.

I've copied the 3 certs (CA/Cert/Key) over from my linux based PKI, but it appears as though they are not being used when connecting to my mosquitto broker. I get the error shown below in my mosquitto logs saying "peer did not return a certificate"

I can provide more detail of you need it, just let me know how I can help.

I'm running MQTTClient version 4.5.1

2020-12-25_16:49:41: New connection from 192.168.1.1:40940 on port 8883.
2020-12-25_16:49:41: OpenSSL Error[0]: error:1417C0C7:SSL routines:tls_process_client_certificate:peer did not return a certificate
2020-12-25_16:49:41: Bad socket read/write on client <unknown>, disconnecting.

Screenshot_20201225-165616_MQTT Client2

Screenshot_20201225-170514_MQTT Client

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions