here is the command that i am using to start mongod on database VM.
mongod --dbpath /home/vagrant/M310-HW-2.6/r1 --logpath /home/vagrant/M310-HW-2.6/r1/mongo.log.log --port 31260 --enableEncryption --kmipServerName infrastructure --kmipServerCAFile ca.pem --kmipClientCertificateFile /home/vagrant/shared/certs/client.pem --fork
PYKMIP server is up. I am also able to telnet to infrastructure server on 5696 port from database VM
[vagrant@infrastructure shared]$ python pykmip_server.py
2021-01-21 03:29:20,706 - main - INFO - Starting KMIP server
vagrant@database:~/shared/certs$ telnet infrastructure 5696
Trying 192.168.31.200…
Connected to infrastructure.m310.mongodb.university.
Escape character is ‘^]’.
Following is the error message in mongod log:
Unable to retrieve key .system, error: Failed to open connection to KMIP server infrastructure.