|
Hi all, I'm trying to look up certificates (using their serial number, but other attributes produce the same results) using the REST API. I have to EE profiles (both issued by the same CA, in this case RSA-C1). Searching for certificates in EE1 works, but EE2 does not, unless I use the super-admin account. My query is as follows: These permissions are set for the user identified with What am I missing? |
Replies: 1 comment 1 reply
|
The empty result is by design. Unauthorized end entity profiles get filtered out of the search, so it looks like no certificates matched rather than a 403.
if (authorizationSession.isAuthorizedNoLogging(admin,
ENDENTITYPROFILEBASE + "/" + profileId + endentityAccessRule)) {
authorizedToProfile = true;
for (final int caId : availableCaIds) {
if (!authorizedCaIds.contains(caId) && (!hasRootRuleAccess || allCaIds.contains(caId))) {
authorizedToProfile = false;Two things needed:
Number 2 fits your symptom. Both certs are from RSA-C1, but if EE2 also lists a third CA you don't have Turn on DEBUG for |
The empty result is by design. Unauthorized end entity profiles get filtered out of the search, so it looks like no certificates matched rather than a 403.
EndEntityProfileSessionBean.isAuthorizedToProfile:273:Two things needed:
/endentityprofilesrules/EE2/view_end_entity/. Your paste cuts off before the EE2 block so check it's there./ca/<X>/for eve…