Searched refs:CertUtils (Results 1 – 9 of 9) sorted by relevance
24 import com.ohos.hapsigntool.utils.CertUtils;270 certificates = CertUtils.generateCertificates(FileUtils.readFile(certFile)); in getCertsFromFile()340 return CertUtils.parseExtKeyUsage(options.getString(Options.EXT_KEY_USAGE)); in getExtKeyUsage()349 return new KeyUsage(CertUtils.parseKeyUsage(options.getString(Options.KEY_USAGE))); in getKeyUsage()359 return CertUtils.buildDN(subject); in getSubject()369 return CertUtils.buildDN(issuer); in getIssuer()
31 import com.ohos.hapsigntool.utils.CertUtils;107 String csrContent = CertUtils.toCsrTemplate(csr); in generateCsr()367 logger.info(CertUtils.generateCertificateInCer(certificate)); in outputCert()369 … FileUtils.write(CertUtils.generateCertificateInCer(certificate).getBytes(StandardCharsets.UTF_8), in outputCert()391 stringBuilder.append(CertUtils.generateCertificateInCer(cert)); in outputCertChain()
22 import com.ohos.hapsigntool.utils.CertUtils;102 X500Name subName = CertUtils.buildDN(subject); in testRootCaCert()143 X500Name subName = CertUtils.buildDN(APP1_RELEASE); in testSubCaCert()183 X500Name subName = CertUtils.buildDN(APP1_RELEASE); in testAppCert()227 String csrTemplate = CertUtils.toCsrTemplate(csr); in testCsrTemplate()
45 public final class CertUtils { class49 private static final Logger LOGGER = LogManager.getLogger(CertUtils.class);64 private CertUtils() { in CertUtils() method in CertUtils
94 CertUtils.sortCertificateChain(certs); in getCertListFromFile()
55 private static final Logger LOGGER = LogManager.getLogger(CertUtils.class);
25 import com.ohos.hapsigntool.utils.CertUtils;142 CertUtils.sortCertificateChain(certificates); in verify()
21 import com.ohos.hapsigntool.utils.CertUtils;94 … issuer, CertUtils.randomSerial(), Date.from(notBefore.atZone(ZoneId.systemDefault()).toInstant()), in CertBuilder()
21 import com.ohos.hapsigntool.utils.CertUtils;309 CertUtils.randomSerial(), in createKeyOnly()