Failed to initialize the server-side SSL context / Certificate chain is not valid

Issue was due to the ‘bin’ information in the servers pem file, and the CA’s certificates also in the pem file. Once I removed it so it’s just the OpenSearch server’s certificate in there it worked fine.