AnsweredAssumed Answered

Import private key through REST API

Question asked by stephan.burkard on Dec 23, 2016
Latest reply on Dec 27, 2016 by stephan.burkard

Hi 

When I try to import a private key through the REST API of Layer7

 

<l7:PrivateKeyImportContext xmlns:l7="http://ns.l7tech.com/2010/04/gateway-management">
<l7:Pkcs12Data>MII...</l7:Pkcs12Data>
<l7:Password>myPassword</l7:Password>
</l7:PrivateKeyImportContext>

 

I get the following error message in the audit log: 

<l7:Error xmlns:l7="http://ns.l7tech.com/2010/04/gateway-management">
<l7:Type>ResourceAccess</l7:Type>
<l7:TimeStamp>2016-12-23T11:07:11.152+01:00</l7:TimeStamp>
<l7:Link rel="self" uri="https://entx02.visana.ch:8443/restman/1.0/privateKeys/00000000000000000000000000000002:f5-l7-ssl/import"/>
<l7:Detail>Unable to read KeyStore: org.bouncycastle.asn1.DERSequence cannot be cast to org.bouncycastle.asn1.DERInteger. Caused by: org.bouncycastle.asn1.DERSequence cannot be cast to org.bouncycastle.asn1.DERInteger</l7:Detail>
</l7:Error>

 

Can someone give me a hint what is going wrong here?

 

Thanks

Stephan

Outcomes