How to create the Certificate in Dart.
I used to create the following certificate in java, Can we convert the following Java code to Dart?
Where the "certBytes" is a byte array in which I will be getting certificate data.
byte[] certBytes = new byte[]{(byte) 0x00, (byte) 0x01, (byte) 0x22, (byte) 0x7E};
InputStream in = new ByteArrayInputStream(certBytes);
X509Certificate certificate = null;
try {
CertificateFactory certFactory = CertificateFactory.getInstance("X.509");
certificate = (X509Certificate) certFactory.generateCertificate(in);
}