Jennifer88huang opened a new issue #8872:
URL: https://github.com/apache/pulsar/issues/8872
**To Reproduce**
From @evfurman:
I got authentication configured on the brokers.
```
<html> <head> <meta http-equiv="Content-Type"
content="text/html;charset=utf-8"/> <title>Error 401 Authentication
required</title> </head> <body><h2>HTTP ERROR 401 Authentication required</h2>
<table> <tr><th>URI:</th><td>/admin/v2/brokers/health</td></tr>
<tr><th>STATUS:</th><td>401</td></tr> <tr><th>MESSAGE:</th><td>Authentication
required</td></tr>
<tr><th>SERVLET:</th><td>org.glassfish.jersey.servlet.ServletContainer-3051e0b2</td></tr>
</table> <hr><a href="https://eclipse.org/jetty">Powered by Jetty://
9.4.33.v20201020</a><hr/> </body> </html>
```
However, when I try to produce with the pulsar-perf client, I get the
following error:
```
22:30:33.866 [pulsar-client-io-2-1] INFO
org.apache.pulsar.client.impl.ConnectionPool - [[id: 0x1327459b,
L:/10.3.22.138:59344 -
R:pulsar-pluster-01.qa.corp.mparticle.com/10.3.22.230:6651]] Connected to server
22:30:33.883 [pulsar-client-io-2-1] WARN
org.apache.pulsar.client.impl.ClientCnx - [id: 0x1327459b, L:/10.3.22.138:59344
- R:pulsar-pluster-01.qa.corp.mparticle.com/10.3.22.230:6651] Received error
from server: Unable to authenticate
22:30:33.883 [pulsar-client-io-2-1] WARN
org.apache.pulsar.client.impl.ClientCnx - [id: 0x1327459b, L:/10.3.22.138:59344
- R:pulsar-pluster-01.qa.corp.mparticle.com/10.3.22.230:6651] Received unknown
request id from server: -1
22:30:33.884 [pulsar-client-io-2-1] INFO
org.apache.pulsar.client.impl.ClientCnx - [id: 0x1327459b, L:/10.3.22.138:59344
! R:pulsar-pluster-01.qa.corp.mparticle.com/10.3.22.230:6651] Disconnected
```
The client.conf is:
```
webServiceUrl=https://pulsar-pluster-01.qa.corp.mparticle.com:8443/
brokerServiceUrl=pulsar+ssl://pulsar-pluster-01.qa.corp.mparticle.com:6651/
authPlugin=org.apache.pulsar.client.impl.auth.AuthenticationKeyStoreTls
authParams=keyStoreType:JKS,keyStorePath:/opt/pulsar/tls/keystore.jks,keyStorePassword:XXXXXXXXXXXX
tlsAllowInsecureConnection=false
tlsEnableHostnameVerification=false
useKeyStoreTls=true
tlsTrustStoreType=PEM
tlsTrustStorePath=/opt/pulsar/tls/truststore.jks
tlsTrustStorePassword=XXXXXXXXXXXXX
useTls=true
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]