The HTTP ERROR 400 Invalid SNI issue you encountered is because NiFi's HTTPS certificate does not match the IP/domain name you use when accessing. NiFi will strictly verify the SAN (Subject Alternative Name) in the certificate by default. If there is no corresponding IP or domain name in the certificate, the connection will be rejected