MID Server Mutual Authentication Error "could not authenticate user 'null'"Issue MID Server is unable to authenticate using self signed certificates > From Agent logs 01/19/22 10:07:34 (229) StartupSequencer SEVERE *** ERROR *** SOAP Request: <SOAP-ENV:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://www.service-now.com/GetMIDInfo" xmlns:m="http://www.service-now.com" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><m:execute><roles xsi:type="xsd:string">mid_server,soap,soap_script,soap_query,soap_create,soap_delete,soap_ecc,soap_script,soap_update</roles></m:execute></SOAP-ENV:Body></SOAP-ENV:Envelope>01/19/22 10:07:34 (229) StartupSequencer SEVERE *** ERROR *** SOAP Response: Status code=401, Response body=<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header/><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>User Not Authenticated</faultcode><faultstring>User Not Authenticated</faultstring><detail>Error completing SOAP request</detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>01/19/22 10:07:34 (230) StartupSequencer WARNING *** WARNING *** Could not authenticate user 'null' on the ServiceNow instance01/19/22 10:07:34 (230) StartupSequencer SEVERE *** ERROR *** test failurejava.lang.IllegalStateException: User cannot be authenticated or is missing the proper roles. If you have deleted or changed the MID server keystore, and config.xml mid.instance.password value is encrypted, you may need to change this value to plain text (during MID startup, password is re-encrypted using current keystore and written back to mid.instance.password).at com.service_now.mid.services.StartupSequencer.runTests(StartupSequencer.java:668)at com.service_now.mid.services.StartupSequencer.startupSequencerRunnable(StartupSequencer.java:717)at java.base/java.lang.Thread.run(Thread.java:834) CauseMIDServerCheck.do will be the first scripted soap service that need authentication, and has the 401 (InstanceInfo.do is a public page)us=401 rescode=401Jan 19 23:59:54 adc09a <App node>765_ytz0[6446]: [adcv2_access] src=XXX.XX.XX.XX vip=XX.XX.XX.XX instance=<Instance name> node=XX.XX.XX.XXX:16567 method=POST uri=/MIDServerCheck.do?SOAP reqtime=0.023 rtt32=102591 uct=0.000 uht=0.024 urt=0.024 us=401 rescode=401 ssl_cipher=ECDHE-RSA-AES128-GCM-SHA256 ssl_protocol=TLSv1.2 ua="internal_soap_client" h=h1 c_cert=MIIEXDCCA0 c_cert_issuer="CN=client.dev" c_cert_status="SUCCESS"ResolutionSelf-signed certificates are not supported for mTLS with respect to the MID server. The customer should obtain a certificate and private key from a trusted authority per the documentation.Related LinksEnable MID Server mutual authentication