Searched refs:certGen (Results 1 – 1 of 1) sorted by relevance
659 final X509V3CertificateGenerator certGen = new X509V3CertificateGenerator(); in generateSelfSignedCertificateWithValidSignature() local660 certGen.setPublicKey(publicKey); in generateSelfSignedCertificateWithValidSignature()661 certGen.setSerialNumber(mSpec.getCertificateSerialNumber()); in generateSelfSignedCertificateWithValidSignature()662 certGen.setSubjectDN(mSpec.getCertificateSubject()); in generateSelfSignedCertificateWithValidSignature()663 certGen.setIssuerDN(mSpec.getCertificateSubject()); in generateSelfSignedCertificateWithValidSignature()664 certGen.setNotBefore(mSpec.getCertificateNotBefore()); in generateSelfSignedCertificateWithValidSignature()665 certGen.setNotAfter(mSpec.getCertificateNotAfter()); in generateSelfSignedCertificateWithValidSignature()666 certGen.setSignatureAlgorithm(signatureAlgorithm); in generateSelfSignedCertificateWithValidSignature()667 return certGen.generate(privateKey); in generateSelfSignedCertificateWithValidSignature()