Errors when uploading certificates via J2ee engine Visual Admin Key Storage service
When an Administrator tries to import any X.509 certificate like *.pfx, *.cert, *.key etc. in the Visual admin “Key Storage” service, the operation fails with the below error:
“com.sap.engine.services.keystore.exceptions.BaseParameterException: Cannot perform operation – character [‘ ‘] cannot be part of view or entry alias“:
The reason for the error is that white spaces or dots, files with long names are not supported as keystore entries because of architectural limitations.
As the issue occurs due to the inability of the server to recognise such certificates, one of the below three workarounds should resolve the issue:
Make sure there are no white spaces, dots in the certificate’s filename and then try to import the certificate again.
If the above resolution does not work, then try to rename the file to a shorter name and then try the import.
If the issue still persists, try to load the original X.509 certificate again into the Key Store, but DO NOT use the *.* filter option for the “File of Type“. Instead select the *.pfx or .cer or whatever file is being loaded and then try to import.