E-WL: Error Importing SSL Certificate using "pskeymanager -import": Errors 'EOFException' or 'Parsing Exception' or 'Input not an X.509 certificate' or 'too big' (Doc ID 661023.1)

Last updated on JANUARY 04, 2013

Applies to:

PeopleSoft Enterprise PT PeopleTools - Version 8.44 to 8.52 [Release 8.4]
Information in this document applies to any platform.

This document was previously published as Customer Connection Solution 201065498



***Checked for relevance on 19-Jul-2010***


Symptoms

When importing a certificate into the WebLogic keystore, using "pskeymanager -import", you receive an error referring to an 'EOFException' or 'parsing' problem or error  'Input not an X.509 certificate' or 'too big'.  Below are examples of some of the errors you may observe:

java.io.EOFException
            at java.io.DataInputStream.readFully(DataInputStream.javANSWER:268)
            at java.io.DataInputStream.readFully(DataInputStream.javANSWER:242)
            at sun.security.util.DerValue.init(DerValue.javANSWER:374)
            at sun.security.util.DerValue.<init>(DerValue.javANSWER:302)
            at sun.security.provider.X509Factory.parseX509orPKCS7Cert(X509Factory.javANSWER:522)
            at sun.security.provider.X509Factory.engineGenerateCertificates(X509Factory.javANSWER:407)
            at java.security.cert.CertificateFactory.generateCertificates(CertificateFactory.javANSWER:511)
            at sun.security.tools.KeyTool.installReply(KeyTool.javANSWER:1193)
            at sun.security.tools.KeyTool.doCommands(KeyTool.javANSWER:504)
            at sun.security.tools.KeyTool.run(KeyTool.javANSWER:124)
            at sun.security.tools.KeyTool.main(KeyTool.javANSWER:118)
    keytool error: java.security.cert.CertificateException
 
    Import failed.  Verify that the Certificate Authority that signed 'cert.cer' has been loaded into your keystore 'keystore\pskey'



Or you may receive error:

keytool error: java.lang.Exception: Input not an X.509 certificate

Import failed. Verify that the Certificate Authority that signed 'my-input-file.cer'
has been loaded into your keystore 'C:/peoplesoft/webserv/peoplesoft\keystore/pskey'


Or error:

Keytool Error: java.security.cert.CertificateParsingException: invalid DER-encoded certificate data


Or error:

keytool error: java.security.cert.CertificateException: java.io.IOException: Der
InputStream.getLength(): lengthTag=127, too big.


Or error:

keytool error: java.security.cert.CertificateException: sun.security.pkcs.ParsingException: ObjectIdentifier() -- data isn't an object ID (tag = 48)

 

Or error:

 


Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms