Skip to content

MQT: TLS connection error: 56 - BR_ERR_X509_BAD_SERVER_NAME X.509 status: expected server name was not found in the chain #22893

Answered by wewa00
wewa00 asked this question in Support request
Discussion options

You must be logged in to vote

@s-hadinger I now managed to create a certificate with SAN, which also works for Tasmota 14.4.1.

These are the steps:

# create the CA key and certificate
openssl genrsa -des3 -out ca.key 2048
openssl req -new -x509 -days 36500 -key ca.key -out ca.crt

# create the key for the server's certificate
openssl genrsa -out server.key 2048

# Certificate with SAN
# create the server's certificate - Make sure to uncomment "req_extensions = v3_req" in "/etc/ssl/openssl.cnf"
openssl req -new -out server.csr -key server.key -sha256 -subj /CN=192.168.1.1 -reqexts SAN -extensions SAN -config <(cat /etc/ssl/openssl.cnf <(printf '[SAN]\nsubjectAltName=IP:192.168.1.1,DNS=192.168.1.1'))
# sign the server's…

Replies: 5 comments 20 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
12 replies
@wewa00
Comment options

@s-hadinger
Comment options

@wewa00
Comment options

@wewa00
Comment options

Answer selected by wewa00
Comment options

You must be logged in to vote
3 replies
@Noschvie
Comment options

@wewa00
Comment options

@Noschvie
Comment options

Comment options

You must be logged in to vote
1 reply
@wewa00
Comment options

Comment options

You must be logged in to vote
4 replies
@s-hadinger
Comment options

@wewa00
Comment options

@wewa00
Comment options

@Noschvie
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants