Question
Accenture Technology Solutions (Shanghai) Co., Ltd
CN
Last activity: 3 Apr 2024 22:24 EDT
Failed loading custom master key from data page for application data encryption
Hi All,
We are trying to enable application data encryption on Pega using a custom key management service, there is a error message "Failed loading master key from data page" showing on runtime, any advice for this issue?
******************** Java Code **************************
// Get master key from remote location byte[] masterKey = "TestingMasterKey".getBytes(); // TODO: assign 16 byte master key KeyStoreUtils keyUtil = pega.getKeyStoreUtils(); CustomMasterKey customMasterKey = keyUtil.getMasterKeyObject(); customMasterKey.setMasterKey(masterKey); keyUtil.loadMasterKeyForSystemDataEncryption(customMasterKey);
******************** Java Code **************************