AaronDuncan (Customer) to rsaSFDCadmin (RSA): asked a question.

ServiceNow Wizard Certificate issue
I ran through the wizard to create the application connection to ServiceNow,
but when testing I get this error. During the test Connection portion of the
wizard, the only thing that shows is WSSecurity Error.Error while creating
KeyStore. I created a self-signed certificate on my server and used it, but
can't figure out why the certificate is not working.



Error ID: | 315446
---|---
Description: | EC[25004] Context[Collector Name=,Agent
Name=AveksaAgent,Message=com.aveksa.common.ConfigException: WSSecurity
Error.Error while creating KeyStore . Caused by
java.security.cert.CertificateException: Unable to initialize,
java.io.IOException: Short read of DER length. Caused by java.io.IOException:
Short read of DER length] Message[Collector configuration error]
Type: | System
Created On: | 1/11/22 11:15 AM

### Details

Stack
---
com.aveksa.common.ConfigException: WSSecurity Error.Error while creating
KeyStore
at
com.aveksa.collector.servicenow.util.KeyStoreHelper.writeTokensToKeystore(KeyStoreHelper.java:112)
at com.aveksa.collector.servicenow.util.StubCreator.init(StubCreator.java:112)
at
com.aveksa.collector.servicenow.adc.ServiceNowAccountDataReader.init(ServiceNowAccountDataReader.java:50)
at
com.aveksa.client.datacollector.collectors.accountdatacollectors.AccountDataCollector.configureReader(AccountDataCollector.java:184)
at
com.aveksa.client.datacollector.collectors.accountdatacollectors.AccountDataCollector.init(AccountDataCollector.java:152)
at
com.aveksa.client.datacollector.framework.DataCollectorManager.initCollector(DataCollectorManager.java:624)
at
com.aveksa.client.datacollector.framework.DataCollectorManagerFactory.createDataCollectorManager(DataCollectorManagerFactory.java:93)
at
com.aveksa.client.component.collector.DefaultCollectorManager.actUpon(DefaultCollectorManager.java:466)
at
com.aveksa.client.component.collector.DefaultCollectorManager.handle(DefaultCollectorManager.java:120)
at
com.aveksa.client.component.event.DefaultEventManager.handle(DefaultEventManager.java:70)
at
com.aveksa.client.datacollector.framework.SimpleEventSource.notifyListeners(SimpleEventSource.java:67)
at
com.aveksa.client.component.communication.DefaultCommunicationManager.notifyEvent(DefaultCommunicationManager.java:377)
at
com.aveksa.client.component.communication.ChangeListHandler.applyChanges(ChangeListHandler.java:364)
at
com.aveksa.client.component.communication.ChangeListHandler.access$300(ChangeListHandler.java:58)
at
com.aveksa.client.component.communication.ChangeListHandler$ChangeApplyingRunnable.run(ChangeListHandler.java:275)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.security.cert.CertificateException: Unable to initialize,
java.io.IOException: Short read of DER length
at sun.security.x509.X509CertImpl.(X509CertImpl.java:198)
at
sun.security.provider.X509Factory.engineGenerateCertificate(X509Factory.java:102)
at
java.security.cert.CertificateFactory.generateCertificate(CertificateFactory.java:339)
at
com.aveksa.collector.servicenow.util.KeyStoreHelper.writeTokensToKeystore(KeyStoreHelper.java:60)
... 15 more
Caused by: java.io.IOException: Short read of DER length
at sun.security.util.DerInputStream.getLength(DerInputStream.java:582)
at sun.security.util.DerValue.(DerValue.java:258)
at sun.security.util.DerInputStream.getDerValue(DerInputStream.java:451)
at sun.security.x509.X509CertImpl.parse(X509CertImpl.java:1835)
at sun.security.x509.X509CertImpl.(X509CertImpl.java:195)
... 18 more
End Stack

  • AaronDuncan (Customer)

    I found that the public certificate I put in the application was the wrong
    one. Once I updated that, It makes the connection, but now I'm working with a
    different error.
    Selected as Best
  • AaronDuncan (Customer)

    I found that the public certificate I put in the application was the wrong
    one. Once I updated that, It makes the connection, but now I'm working with a
    different error.
    Selected as Best