6 Jan. 2014
Several modifications are required to make this example run on your machine:
1) In the file, ex-kmip-1.cpp, function CKmipExample1::initialize(), replace the host name of "fqdn.com" to the fully
qualified domain name of the server you wish to connect to.
2) (Optional) In the file, ex-kmip-1.cpp, function CKmipExample1::createKeystore(), replace the first parameter
of the call to openSigned(). The first parameter of openSigned() is the file path where to create and access keystore
databases. If NULL, then the keystore location will default to the P6R database directory. If the SKC is installed
in a read-only directory then the first parameter will need to be set to an existing read/write directory.
3) Replace the contents of the files: ClientCert.pem, ClientPrivate.pem, and RootCert.pem.
These files are required to make an SSL connection to a KMIP server.
RootCert.pem is the certificate for the server you wish to connect to.
ClientCert.pem is the client's certificate generated by the KMIP server.
ClientPrivate.pem is the client's private key generated by the KMIP server.
Replace each file with certificate/private key given to you by the KMIP server administrator.
4) In the file, ../confs/p6kmip.conf, under the section "[p6kmip-gen]" change the "logDir" configuration parameter
to an existing, writeable directory path. Use the proper path for the system you are on (Linux, Solaris, or Windows).
For eample:
logDir = "E:\work\current\WINNT6.1_x86_DBG_32bit.OBJ\logs"
Or
logDir = "/var/logs/kmip"
5) Make sure you have a license file in the kmip-1/Debug directory on windows, kmip-1/linux-DBG directory, or kmip-1/solaris-DBG directory.
These files look something like: "{CD681649-21EF-449B-BD7B-169B1116D7D9}.lic".