cancel
Showing results for 
Search instead for 
Did you mean: 

Import Certification & Private Key into the NetWeaver-WebAS v7.1

Former Member
0 Kudos

Dear together,

System environment:

-> SAP NetWeaver PI (WebAS) v7.1 & MaxDB under Windows XP

-> v7.1 SP15

-> Keystore View: DEFAULT

one Question: I have tried to import (from file) my self-made certificate and private key (with Java JCE) into the WebAS under "Certifications & Keys -> Key storage" and have got the error message below:

ERROR: -> java.lang.ArrayIndexOutOfBoundsException: Index out of range: 1 >= 0

Another error message was:

ERROR: -> iaik.asn1.CodingException: ASN1: OBJECT ID does not support getComponentAt(int)!

What's to do? What's wrong on my making?

The contents of both files you can find below as well:

PRIVATE KEY (privatekey.p7):

===============

Sun RSA private CRT key, 1024 bits

modulus: 95604849482429508770864512674666583456602844585329348689237119402522986391550536242893900470796119353308148212627253697200578988417870408506879425206687315028907516447843892734657475992349898722413955373812224895668706870247487577492435550817614480320845117042390827133111364683011054938949563937324987669159

public exponent: 65537

private exponent: 50824312311638373523001047066319541139021363586262332855227142529928145107063501269548857781139460125871734802141286888482356103521348322815809072343881858310550119071823602922534055252043831276200370496836235608964494045487724603031971283728372134167143108915434983265237275371915642304397141680288814346753

prime p: 12890912035977049947705118354644416155947301878682857271636193866745916726975262131658490976981154516308566200250143148187451166643591939280489693512826823

prime q: 7416453484098517726179535838367072761995882923956995241057847226856273096787393728059327030020494914975841550436397142990204024794535779644116371772608033

prime exponent p: 12763255873635943314565660921253137548668821037032107704684824566663244344110514811466136114169906377378125999081912333484708352551526523277422146766869201

prime exponent q: 1045978295520432722631146524162333545007063885532363504785047864837153550415885381211412785731410264417378022348957364430145655144054415234914134371335521

crt coefficient: 636393049984380294563921536372984686627440842290167012373685940176713607816722313130540093815079821089340024855439832232652248222496678306088491744207840

PUBLIC KEY (publickey.crt):

===============

Sun RSA public key, 1024 bits

modulus: 95604849482429508770864512674666583456602844585329348689237119402522986391550536242893900470796119353308148212627253697200578988417870408506879425206687315028907516447843892734657475992349898722413955373812224895668706870247487577492435550817614480320845117042390827133111364683011054938949563937324987669159

public exponent: 65537

Thanks for help and regards,

Cengiz

Accepted Solutions (0)

Answers (7)

Answers (7)

former_member550907
Participant
0 Kudos

Hi Cengiz

how you solved this problem?

Regards

Rinaz

ingo_hauchwitz
Explorer
0 Kudos

Hello everybody,

today we faced the same issue on a PI 7.31 (Java-Single-Stack) while importing a public key into the keystore. The error message during import was the same, so I could find this thread:

iaik.asn1.CodingException: ASN1: OBJECT ID does not support getComponentAt(int)!

We could resolve this issue by converting the certificate to a base64-encoded representation. You can do this easily by double-clicking the certificate in the windows explorer and storing it as a base64-encoded one.

Hope this helps.

regards

Ingo

alexanderaigner
Explorer
0 Kudos

Worked for me on PI 7.4 Dual Stack! Had this issue with a normal server certificate! Thanks!

Best regards,

Alex

Former Member
0 Kudos

Just a small modification. You need create the certificates normally. While uploading them in keystorage service, select the format as PKCS#12 (.p12).

Former Member
0 Kudos

Hello Cengiz

Please create your certificate and keys with PKCS#12 format (.p12 ) and upload it. The format of uploaded certificate should be .p12.

I hope this will help you.

Thanks,

Tapan

Sriram2009
Active Contributor
0 Kudos
Former Member
0 Kudos

Hi Cengiz,

Please post your solution for the issue mentioned.

It will be helpful for the one who facing the similar kind of issue.

Regards

Amarnath M

Former Member
0 Kudos

Hi Cengiz,

i have the same error...

how do you solved this problem?

i hope your response.

Thanks a lot

Renato