X509v3CertificateBuilder sınıfını kullanarak PKCS10 isteklerinden sertifika üretmek için Bouncycastle lib kullanıyorum.X500Principal Distinguished Ad siparişi
Oluşturulan sertifikayı içeren bir X509CertificateHolder nesnesi oluşturur. GetIssuer'ı tutucuda çağırırsam, doğrulanmış sırayla yayıncı ayırt edici adını döndürür (eğer sertifikalı sürümü java CertificateFactory kullanarak tutucudan ayrıştırırsam, yayıncı sertifikasında getSubjectX500Principal() çağrısı ile döner) Oluşturulan sertifikanın getIssuerX500Principal() yöntemi ters sırada DN'yi döndürür, sorun nedir? Ben seçkin isimleri karşılaştırmak gerekir yana
X509CertificateHolder holder = certBuilder.build(sigGen);
holder.getIssuer(); //Returns the DN in the correct order (same as in issuer cert)
CertificateFactory certFactory = CertificateFactory.getInstance("X.509");
X509Certificate cert = (X509Certificate) certFactory.generateCertificate(new ByteArrayInputStream(holder.getEncoded()));
cert.getIssuerX500Principal().getName(); //Returns issuer DN in reverse order