The first time after I load Proton and connect to a database I get the following message. It does not show this on subsequent connections.
[1418:0007-1220] 03/18/2021 07:10:11 AM PROTON: No match found for server name: AppDevServer.netexperts.com. [D:\jenkins\workspace\domino-app-dev\fed-protected\grpc\grpc\src\core\tsi\ssl_transport_security.cc:1570]
It works and returns data. I am passing the client cert in the node.js code (per the example). The IAM server is not setup since I am not using the act as user option. Not sure why I get the error msg above and how to fix. It doesn't seem to affect anything (yet?).
This is documented in the AppdevPack Documentation:
Name in the server's certificate must be used by domino-db clients
The domino-db module connecting to Proton must use a dns name or ip address that exists in the server's certificate.
Proton will report the following error when the client is attempting to connect to the server using a hostname name or address that is not on the server's certificate:
PROTON> No match found for server name: xxxxxxxxxxxxxxx.
Where xxxxxxxxxxxxxxx
is the name/address the client used.
thanks, that was it!
changed the dns name to match the dns in the server certificate.
const serverConfig = {
hostName: 'appdevserver.netexperts.com',
connection: {
port : '3003',
secure:true
},
credentials: {
rootCertificate,
clientCertificate,
clientKey
}
}