summaryrefslogtreecommitdiffstats
path: root/pki/base/silent/src/common/Utilities.java
diff options
context:
space:
mode:
Diffstat (limited to 'pki/base/silent/src/common/Utilities.java')
-rw-r--r--pki/base/silent/src/common/Utilities.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/pki/base/silent/src/common/Utilities.java b/pki/base/silent/src/common/Utilities.java
index 648fbb34d..444d9b6bf 100644
--- a/pki/base/silent/src/common/Utilities.java
+++ b/pki/base/silent/src/common/Utilities.java
@@ -26,6 +26,7 @@ import sun.misc.*;
import netscape.security.x509.*;
import netscape.security.util.*;
+import com.netscape.osutil.OSUtil;
public class Utilities {
private static final String keyValueSeparators = "=: \t\r\n\f";
@@ -303,8 +304,9 @@ public class Utilities {
temp = temp.replaceAll("\\n", "");
try {
- BASE64Decoder base64 = new BASE64Decoder();
- byte decodedBASE64Cert[] = base64.decodeBuffer(temp);
+ // BASE64Decoder base64 = new BASE64Decoder();
+ // byte decodedBASE64Cert[] = base64.decodeBuffer(temp);
+ byte decodedBASE64Cert[] = OSUtil.AtoB(temp);
X509CertImpl x509_cert = new X509CertImpl(decodedBASE64Cert);
X509CertInfo certinfo = (X509CertInfo) x509_cert.get("x509.INFO");