Re: NPPS012 error
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello!
I successfully configured Postman to send visa direct request.
After that I set to "Enforced" method getAlias and trying to re-config the Postman:
added keyId param with value from my project and crypt the payload
public static String getEncryptedPayload(String keyId, String mleServPubPath, String requestPayload) throws CertificateException, JOSEException, IOException {
JWEHeader.Builder headerBuilder = new JWEHeader.Builder(JWEAlgorithm.RSA_OAEP_256, EncryptionMethod.A128GCM);
headerBuilder.keyID(keyId);
headerBuilder.customParam("iat", System.currentTimeMillis());
JWEObject jweObject = new JWEObject(headerBuilder.build(), new Payload(requestPayload));
jweObject.encrypt(new RSAEncrypter(getRSAPublicKey(mleServPubPath)));
return "{\"encData\":\"" + jweObject.serialize() + "\"}";
}
But test is failed:
Solved! Go to Solution
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @evgeny_t,
Please share the following information and we'll take a look. Thank you.
1.Request Header
2.Request Body (unencrypted)
3. Response Header (include the x-correlation-id)
4. Response Body (unencrypted)
Best,
Stacey
Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: NPPS012 error
Hey there, I am facing this same issue while trying to invoke API in android app, can you tell me how did you solved this??
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: NPPS012 error
HI @awais1212,
Sorry for delayed reply. Are you still experiencing an error? If so, please provide the following information:
1. End Point
2. Request Header
3. Request Body
4. Response Header (include the x-correlation-id)
5. Response Body
Using SoapUI, you can find the x-correlation-id in the Raw Tab of the response header.
Thanks,
Diana
Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: NPPS012 error
Hi @awais1212,
Do you still need help? If not, please let me know so that I can take you off my contact list.