Hi,
I'm using EJBCA 4.10.0 and plan to use higher version.
I'm interested in EJBCA Extern RA (EJBCA Webservice) and try to develop an application based on it. I'm facing a problem. I want to find an user by using function findUser with certificate serialNumber as parametter but I couldn't received expected result.
UserMatch usermatch = new UserMatch();
usermatch.setMatchtype(2); //equal to
usermatch.setMatchwith(102); // match DN
usermatch.setMatchvalue(certSerialNumber);
List<UserDataVOWS> result = EjbcaImpl.getInstance().getWS().findUser(usermatch);
Hi,
I'm using EJBCA 4.10.0 and plan to use higher version.
I'm interested in EJBCA Extern RA (EJBCA Webservice) and try to develop an application based on it. I'm facing a problem. I want to find an user by using function findUser with certificate serialNumber as parametter but I couldn't received expected result.
I understand that Matchwith=102 is the value SERIALNUMBER in DN feild. I reference to this link http://ejbca.org/older_releases/ejbca_4_0/htdocs/ws/org/ejbca/core/protocol/ws/client/gen/UserMatch.html and can't find appropriate value for certificate serialNumber.
Could I find an user based on certificate serialNumber?
Thanks
I'm afraid the UserMatch only works on User DN, not certificate serial number. The serno referenced there is SerialNumber in the DN.
You can use getCertificate(serial, issuer) to find a certificate, and from that find a user based on the DN in the certificate.
Cheers,
Tomas
Save time and money with an Enterprise support subscription. Please see www.primekey.se for more information.
https://www.primekey.se/technologies/products-overview/
https://www.primekey.se/service-support/support/
Hi Tomas,
Thank you for your idea, it's great.