skip to Main Content

I've got problems using Telegram Bot API webhook support with self signed cert generated via bouncycastle – Telegram API

This is my code which generated certificate. KeyPairGenerator gen = KeyPairGenerator.getInstance("RSA"); gen.initialize(2048); pair = gen.generateKeyPair(); privateKey = pair.getPrivate(); publicKey = pair.getPublic(); SubjectPublicKeyInfo publicKeyInfo = SubjectPublicKeyInfo.getInstance(publicKey.getEncoded()); X509v3CertificateBuilder builder = new X509v3CertificateBuilder(subjectDN, new BigInteger(serialNumber + ""), startDate, endDate, subjectDN, publicKeyInfo); ContentSigner signer…

VIEW QUESTION
Back To Top
Search