AnsweredAssumed Answered

Error while importing private key

Question asked by gulativivek on Aug 2, 2017
Latest reply on Aug 16, 2017 by gulativivek

Hi

I am trying to import private key using restman's import API restman/1.0/privateKeys/000000000000000000000000000001123:nn%20issuer/import. And this is my request xml which I am trying to send in the request.

 

<l7:PrivateKeyImportContext xmlns:l7="http://ns.l7tech.com/2010/04/gateway-management">
<l7:Pkcs12Data>MIACAQMwgAYJKoZIhvcNAQcBoIAkgASCA0gwgDCABgkqhkiG9w0BBwGggCSABIHX
MIHUMIHRBgsqhkiG9w0BDAoBAqB2MHQwKAYKKoZIhvcNAQwBAzAaBBTSM+pxAN9R
UJh1jri6fUqBltoB+wICBAAESIdE1QB8b+2nMyT1wqPp0DNLJTAWFWtYHOgZztxk
+W5rp5T+SL5+Ov1wAWdwLtzcmslqhLPYUOzvx/qGr2PbQciqV8yeWHJSjzFKMCMG
CSqGSIb3DQEJFDEWHhQAagB3AHQAIABpAHMAcwB1AGUAcjAjBgkqhkiG9w0BCRUx
FgQUHxYCGHRSZ8F3F0MFu5bbRorArTcAAAAAAAAwgAYJKoZIhvcNAQcGoIAwgAIB
ADCABgkqhkiG9w0BBwEwKAYKKoZIhvcNAQwBBjAaBBToDjH0NzSANjjbxKrG1wb5
zVz1MgICBACggASCAfj2timfhMTG1RzGTVEBPJTOxa7ZNKTqmIZ005QIEa/lLcUF
u0u1L8Ng383B3B7Uk96GUDugqsHM6zRBlrqHKNgpqKJ7T5X+i7pcz01Cdr9GOwIa
ohHpH+pdiQ4C6WieIAZGJXAmtp91+uxjiAmqnhPdz7goJchWjRMs8mGCTCBH3YMQ
ogDAMKVG295XMKydgBIRpNYKCssEmMwlLkWs3OZ0KaJjkAQYejKvBybbih3eHAGI
nTkzbxYbE2E61M0jMqPiA/KPzm+C05J/WZBqKruhM27RzyxpcI/3c7SlY44BSwTM
z9oRAw3IaqMsqYITLtREx4RDX02GIh1tBO9tYatPfE7F4FDMfYEv75uByAvFTUYG
GJBTU4gIUZGbrsfqB6fEBkqrpQLRN65dKJdcE4dshYEpHNWb/7HB5dJXn/R05PmF
yTXN4FQmYoXSMkJtoo0pscCMYSVn4S/Kj/ydiEzupolKOmMLg65eUwr7yk2FdDX4
OVIGhzVHNasv7XcfDBv9IH0aXXOoF/wpxE7uEIv0t31OTyQIK9yT934yIVK3/n+m
GlGbf+OPGue1bjE3e8uPtoCCf9ibECQYgcgyOVRE5Sm88W5oB0CJ0HhCi9Cn5iEt
rT/xxp9A/3rlh91j+IZLofZPV3XYtfcKpn7TB8cosQiCaSNZ3NoAAAAAAAAAAAAA
AAAAAAAAAAAwPTAhMAkGBSsOAwIaBQAEFOVOTSadwnl7YyGG69FCI3x3AJs+BBSK
StYQhf/E4Gx0tuAYA2JLqwQqtQICBAAAAA==</l7:Pkcs12Data>
<l7:Password>123456</l7:Password>
</l7:PrivateKeyImportContext>

 

But I am getting following error, can you please help me out?

 

 

Status: 403 Forbidden
Server: Apache-Coyote/1.1
Content-Length: 468
Date: Wed, 02 Aug 2017 14:58:17 GMT
Content-Type: application/xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<l7:Error xmlns:l7="http://ns.l7tech.com/2010/04/gateway-management">
<l7:Type>ResourceAccess</l7:Type>
<l7:TimeStamp>2017-08-02T20:28:17.263+05:30</l7:TimeStamp>
<l7:Link rel="self" uri="https://iii.com:8443/restman/1.0/privateKeys/000000000000000000000000000001123:nnt%20issuer/import"/>
<l7:Detail>PKCS12 key store mac invalid - wrong password or corrupted file.</l7:Detail>
</l7:Error>

I have tried other generated keys as well but response remains the same.#####

Outcomes