PointyCastle / pointycastle

Moved into the Bouncy Castle project: https://github.com/bcgit/pc-dart
MIT License
270 stars 76 forks source link

How does the .cer get Bigint #166

Open guoyuanzhuang opened 5 years ago

guoyuanzhuang commented 5 years ago

In Java I use the following method to get the public key: public PublicKey getPublicKey(InputStream in) { try { try { CertificateFactory certificateFactory = CertificateFactory .getInstance("X.509"); Certificate certificate = certificateFactory.generateCertificate(in); return certificate.getPublicKey(); } finally { if (in != null) in.close(); } } catch (Exception e) { throw new RuntimeException("init exception", e); } } Here is a file stream,What should I do,thanks

richardheap commented 4 years ago

There's a package on pub.dev for that.