java.security.spec.InvalidKeySpecException: Inappropriate key specification: IOException: algid parse error, not a sequence

Apereo Issues | Robert Lewis | 10 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    [CAS-545] Inappropriate key specification in GoogleAccountsServiceTests - Apereo Issues

    jasig.org | 1 year ago
    java.security.spec.InvalidKeySpecException: Inappropriate key specification: IOException: algid parse error, not a sequence
  2. 0

    [CAS-545] Inappropriate key specification in GoogleAccountsServiceTests - Apereo Issues

    jasig.org | 1 year ago
    java.security.spec.InvalidKeySpecException: Inappropriate key specification: IOException: algid parse error, not a sequence
  3. 0

    Downloaded the cas-server-3.1 zip file, ran "mvn package install" get 3 test failures, seem to have the same cause. java.security.spec.InvalidKeySpecException: Inappropriate key specification: IOException: algid parse error, not a sequence at sun.security.provider.DSAKeyFactory.engineGeneratePublic(DSAKeyFactory.java:104) at java.security.KeyFactory.generatePublic(KeyFactory.java:284) at org.jasig.cas.util.PublicKeyFactoryBean.createInstance(PublicKeyFactoryBean.java:39) at org.springframework.beans.factory.config.AbstractFactoryBean.afterPropertiesSet(AbstractFactoryBean.java:120) at org.jasig.cas.authentication.principal.GoogleAccountsServiceTests.getGoogleAccountsService(GoogleAccountsServiceTests.java:46) at org.jasig.cas.authentication.principal.GoogleAccountsServiceTests.setUp(GoogleAccountsServiceTests.java:61) at junit.framework.TestCase.runBare(TestCase.java:125) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) I would ignore these tests since I am not using google stuff, but the test failures seem to keep me from building a war file.

    Apereo Issues | 10 years ago | Robert Lewis
    java.security.spec.InvalidKeySpecException: Inappropriate key specification: IOException: algid parse error, not a sequence
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Downloaded the cas-server-3.1 zip file, ran "mvn package install" get 3 test failures, seem to have the same cause. java.security.spec.InvalidKeySpecException: Inappropriate key specification: IOException: algid parse error, not a sequence at sun.security.provider.DSAKeyFactory.engineGeneratePublic(DSAKeyFactory.java:104) at java.security.KeyFactory.generatePublic(KeyFactory.java:284) at org.jasig.cas.util.PublicKeyFactoryBean.createInstance(PublicKeyFactoryBean.java:39) at org.springframework.beans.factory.config.AbstractFactoryBean.afterPropertiesSet(AbstractFactoryBean.java:120) at org.jasig.cas.authentication.principal.GoogleAccountsServiceTests.getGoogleAccountsService(GoogleAccountsServiceTests.java:46) at org.jasig.cas.authentication.principal.GoogleAccountsServiceTests.setUp(GoogleAccountsServiceTests.java:61) at junit.framework.TestCase.runBare(TestCase.java:125) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) I would ignore these tests since I am not using google stuff, but the test failures seem to keep me from building a war file.

    Apereo Issues | 10 years ago | Robert Lewis
    java.security.spec.InvalidKeySpecException: Inappropriate key specification: IOException: algid parse error, not a sequence
  6. 0

    Java Security - RSA Public Key & Private Key Code Issue

    Stack Overflow | 3 years ago | Priyan RockZ
    java.security.spec.InvalidKeySpecException: java.security.InvalidKeyException: IOException: DerInputStream.getLength(): lengthTag=127, too big.

  1. Andreas Häber 1 times, last 3 weeks ago
10 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.security.spec.InvalidKeySpecException

    Inappropriate key specification: IOException: algid parse error, not a sequence

    at sun.security.provider.DSAKeyFactory.engineGeneratePublic()
  2. Java RT
    KeyFactory.generatePublic
    1. sun.security.provider.DSAKeyFactory.engineGeneratePublic(DSAKeyFactory.java:104)
    2. java.security.KeyFactory.generatePublic(KeyFactory.java:284)
    2 frames
  3. Jasig CAS Core
    PublicKeyFactoryBean.createInstance
    1. org.jasig.cas.util.PublicKeyFactoryBean.createInstance(PublicKeyFactoryBean.java:39)
    1 frame
  4. Spring Beans
    AbstractFactoryBean.afterPropertiesSet
    1. org.springframework.beans.factory.config.AbstractFactoryBean.afterPropertiesSet(AbstractFactoryBean.java:120)
    1 frame
  5. Jasig CAS Core
    GoogleAccountsServiceTests.setUp
    1. org.jasig.cas.authentication.principal.GoogleAccountsServiceTests.getGoogleAccountsService(GoogleAccountsServiceTests.java:46)
    2. org.jasig.cas.authentication.principal.GoogleAccountsServiceTests.setUp(GoogleAccountsServiceTests.java:61)
    2 frames
  6. JUnit
    TestSuite.run
    1. junit.framework.TestCase.runBare(TestCase.java:125)
    2. junit.framework.TestResult$1.protect(TestResult.java:106)
    3. junit.framework.TestResult.runProtected(TestResult.java:124)
    4. junit.framework.TestResult.run(TestResult.java:109)
    5. junit.framework.TestCase.run(TestCase.java:118)
    6. junit.framework.TestSuite.runTest(TestSuite.java:208)
    7. junit.framework.TestSuite.run(TestSuite.java:203)
    7 frames