Let's Reconnect, thank you for making 2022 our best year yet.

Look Back
PTA error 5 — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

PTA error 5

Received Response
23
Views
4
Comments
edited Jun 7, 2022 1:09PM in General Technical Discussions 4 comments

Content

Hi,

I'm trying to set up PTA between interfaces. We did this previously on CP2 but in CP3 I keep getting error 5.

PTA_ENABLED = Yes

PTA_ENCRYPTION_KEYGEN = 3

PTA_ENCRYPTION_METHOD = aes128

PTA_ENCRYPTION_PADDING = 2

PTA_IGNORE_CONTACT_PASSWORD = 2

And I set a 32 character secret key and an IV.

I have tried an IV of NULL or of 0s as suggested in other posts but neither with any luck.

Can anyone help?!

Thanks!

Lorna

Version

Aug2015

Code Snippet

                   $cipher = new \Crypt_AES();
      $cipher->setKey(getConfig(PTA_SECRET_KEY));
      $cipher->setIV(getConfig(PTA_ENCRYPTION_IV));
      
      $ptaDataString = 'p_userid' . $postHookData['returnValue']->login;
      $ptaEncrypted = $cipher->encrypt($ptaDataString);
      $ptaData = base64_encode($ptaEncrypted);
      $ptaDataSafe = strtr($ptaData, array('+' => '_', '/' => '~', '=' => '*'));

redirecting to ...ci/pta/login/redirect/results/p_li/".$ptaDataSafe 
        

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!