Project

General

Profile

Actions

Defect #3072

closed

Uploading/creating certificate via authority into IdM will crop 0 from the beginning of serial number

Added by Roman Kučera almost 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Roman Kučera
Target version:
Start date:
03/14/2022
Due date:
% Done:

100%

Estimated time:
Affected versions:
Owner:

Description

There is issue when you upload certificate manually to IdM it will not save the serial number correctly.
the issue is on line https://git.bcvsolutions.eu/modules/crt/-/blob/develop/Realization/backend/crt/crt-impl/src/main/java/eu/bcvsolutions/idm/crt/service/DefaultCertificateManager.java#L674
This same lane is at some other places to, so it should be fixed in all places probably.
We can probably use
Debug.toHexString(certificateSerialNumber).toUpperCase() from sun.security.util.Debug
There is only some issue with weird spaces in the converted string, so we need to fix it to.

Actions

Also available in: Atom PDF