Exception in thread "main" java.security.spec.InvalidKeySpecException: java.security.InvalidKeyException: IOException: DerInputStream.getLength(): lengthTag=82, too big. at sun.security.rsa.RSAKeyFactory.engineGeneratePublic(RSAKeyFactory.java:188) at java.security.KeyFactory.generatePublic(KeyFactory.java:304) at Test.main(Test.java:55) Caused by: java.security.InvalidKeyException: IOException: DerInputStream.getLength(): lengthTag=82, too big. at sun.security.x509.X509Key.decode(X509Key.java:380) at sun.security.x509.X509Key.decode(X509Key.java:386) at sun.security.rsa.RSAPublicKeyImpl.<init>(RSAPublicKeyImpl.java:66) at sun.security.rsa.RSAKeyFactory.generatePublic(RSAKeyFactory.java:281) at sun.security.rsa.RSAKeyFactory.engineGeneratePublic(RSAKeyFactory.java:184) ... 2 more</init>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)