|
|
|
@ -848,8 +848,8 @@ public class CertificateGenerator {
|
|
|
|
|
String commonName = certificationRequest.getSubject().getRDNs(BCStyle.CN)[0].getFirst()
|
|
|
|
|
.getValue().toString();
|
|
|
|
|
int tenantId = PrivilegedCarbonContext.getThreadLocalCarbonContext().getTenantId();
|
|
|
|
|
X500Name subjectName = new X500Name("O=" + commonName + ",CN=" +
|
|
|
|
|
serialNumber + ", OU=tenant_"+tenantId);
|
|
|
|
|
X500Name subjectName = new X500Name("O=" + commonName + " ,CN=" +
|
|
|
|
|
serialNumber + ", OU=tenant_" + tenantId);
|
|
|
|
|
Date startDate = new Date(System.currentTimeMillis());
|
|
|
|
|
Date endDate = new Date(System.currentTimeMillis()
|
|
|
|
|
+ TimeUnit.DAYS.toMillis(365 * 100));
|
|
|
|
|