Damans227 commented on code in PR #13490:
URL: https://github.com/apache/cloudstack/pull/13490#discussion_r4415664604


##########
server/src/main/java/com/cloud/api/ApiResponseHelper.java:
##########
@@ -5362,12 +5585,12 @@ public NetworkPermissionsResponse 
createNetworkPermissionsResponse(NetworkPermis
     protected void handleCertificateResponse(String certStr, 
DirectDownloadCertificateResponse response) {
         try {
             Certificate cert = CertificateHelper.buildCertificate(certStr);
-            if (cert instanceof X509CertImpl) {
-                X509CertImpl certificate = (X509CertImpl) cert;
+            if (cert instanceof X509Certificate) {
+                X509Certificate certificate = (X509Certificate) cert;
                 response.setVersion(String.valueOf(certificate.getVersion()));
                 response.setSubject(certificate.getSubjectDN().toString());
                 response.setIssuer(certificate.getIssuerDN().toString());
-                
response.setSerialNum(certificate.getSerialNumberObject().toString());
+                
response.setSerialNum(certificate.getSerialNumber().toString());

Review Comment:
   that covers it, thanks



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to