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
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)