I need to read the content of a .cert format file. In java, we can do this as below.
CertificateFactory fac = CertificateFactory.getInstance("X509"); FileInputStream is = new FileInputStream("\\path\\to\\file\\cert.crt"); X509Certificate cert = (X509Certificate) fac.generateCertificate(is); System.out.println("From: " + cert.getNotBefore()); System.out.println("Until: " + cert.getNotAfter());
I need to know that, whether it's possible to do something like this using pure ballerina. (without using java interop)?