-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failing to get symmetric key using a commercial KMIPserver #38
Comments
Hi @jeff-andre, thanks for filing this issue. My apologies for the delay in response, this year has been pretty crazy. I have not been able to test libkmip itself against a third-party commercial KMIP server. However, the PyKMIP server has been used as a stand-in for other third-party servers by third-party developers in the past and has worked well in those use cases, so I would be surprised if there are major failure cases that haven't shown up in our local open source testing. That said, I would always prefer to test libkmip against more server backends if possible. It will be a bit challenging to debug this issue from the client side without more information from the server. The server error has multiple pieces of information that hint at the problem, including If you are still experiencing this error and are interested in further assistance, please let me know. |
Peter, Sorry for the delay, yes it has been a crazy year. I did figure out the issue. The problem with the C API library is that the maximum key size has a maximum length of 50 bytes. The two key servers I was able (with almost hostile support from their vendors) to test against had keys identifiers of 64+ characters in length, the code has a hard coded length of 50 characters. I would post a patch but I had to make a number of changes to the C library to support the product I was working on: 1) Increase the key size; 2) Ability to change standard output for messages to another stream; and 3) provide the ability to have error text to be placed into memory. Unfortunately, there was a commit hook that stripped trailing white space, which did a number on the code. Given the amount of changes, I never created a pull request. I could if you wanted. The repository is at: |
Hi @embedded-dev, sorry for the delay, I'm finally getting back to some of these older issues. I believe the 50 character limit is just an arbitrary setting in I am interested in some of the other changes you mentioned. I updated many of the structure printing utilities to support |
I've been trying to use libkmip with a commercial KMIP server. The same program works correctly with PyKMIP. Has anyone else gotten the the library to work with another server?
Also does one go about debugging an issue like this? The vendor will not provide a hex dump of the encoded packet; with it could probably figure out the problem in a short amount of time.
The error the server is generating:
WARN ... Failed to get ikm type for key (null) rc = -7
WARN ... Failed to get key details for key (null):(null) rc=-7
ERROR ... request.keys.kmip.UnknownOp ClientIP=xx.xx.xx.xx; ServerPort=5696; CN=KMIPtest; Username=KMIPtest;
RequestCount=5812; Operation=1.0_Undefined Operation [0];
info=Exception: ...; ResultReason=GeneralFailure;
errmsg=Unknown key name or insufficient permissions
The text was updated successfully, but these errors were encountered: