You startup and Edge Proxy and in the UI the Status remains in "Registering"

The edgeencryption.log shows the following which repeats constantly:


2018-07-30 06:16:37,710 INFO  Attempting proxy register retry #88
2018-07-30 06:16:38,068 INFO  Successfully registered this proxy "Edge_Proxy_London1" with the ServiceNow instance ""
2018-07-30 06:16:43,069 INFO  Attempting proxy register retry #89
2018-07-30 06:16:43,416 INFO  Successfully registered this proxy "Edge_Proxy_London1" with the ServiceNow instance ""
2018-07-30 06:16:48,417 INFO  Attempting proxy register retry #90
2018-07-30 06:16:48,771 INFO  Successfully registered this proxy "Edge_Proxy_London1" with the ServiceNow instance ""
2018-07-30 06:16:53,774 INFO  Attempting proxy register retry #91
2018-07-30 06:16:54,114 INFO  Successfully registered this proxy "Edge_Proxy_London1" with the ServiceNow instance ""
2018-07-30 06:16:59,114 INFO  Attempting proxy register retry #92
2018-07-30 06:16:59,471 INFO  Successfully registered this proxy "Edge_Proxy_London1" with the ServiceNow instance ""


This could apply to any release.


There may be different causes for these repeating registering messages:


(1) Check the node logs to see if this is a cipher text mismatch, in this case the following was seen in the node logs:

2018-07-30 06:14:22 (573) Edge Encryption-thread-6 719BDCB2136B9300A5BA73304244B061 txid=9aecdcf2136b SEVERE *** ERROR *** sn_edge_encryption (EdgeProxy_Processor): Validation of encryption key : aes128:-1 has failed. Expected cipher text was : 77eQ77eR77eSYWVzMTI477es77eTZml4ZWTvt6zvt5Qx77es77etUVVWVFh6RTJYMko1ZEdWelgybDJYdz09cUdqcUZlVUFwekNCbUdsR0M4b0VOakFFYklRbHFQVElvVUdFR0RZMWE2WUdkbE1IbkktalFhbGxKTldHbVJyZe+3ru+3rw== . But recieved cipher text : 77eQ77eR77eSYWVzMTI477es77eTZml4ZWTvt6zvt5Qx77es77etUVVWVFh6RTJYMko1ZEdWelgybDJYdz09N2ZKeDJGdlRraGhJNjVCMjZ6em41R0xraEdNVUhMSk1Zb1Flbnp3dVh3V1AtbjRpdFNYWlpKQkozUlZZSVBNVe+3ru+3rw==  

This shows that the keystore used by the proxy has an encryption key with the Key alias of aes128 that has a cipher text of:


But on the instance there is an Encryption Key that exists that has the same Key alias (aes128), but has a different Cipher text, in this case:


This mismatch in Cipher text values is why the proxy registration does not happen.


(2) Another reason is that the encryption keys did not match in the keystore file vs the file vs the Encryption Keys defined in the UI (Encryption Key Configuration -> Set Up Keys) - this could be due to a typo in the key alias name, this includes using mismatching cases since the alias is case sensitive.  A mismatch in any of the three places (keystore file, file, Encryption Keys defined in the UI) can cause this error



(1) For Cause (1) - Changing or deleting the encryption key may have impact on existing encrypted data.  For example if you have data encrypted with a certain key you will never be able to unencrypt that data if that key is gone.  So you need to be very careful before taking any action.

If you need to keep that encryption key for data that has already been encrypted you could update the encryption key in the proxy's keystore to match the one that is defined on the instance for the key alias aes128 which will eliminate the mismatch and will allow the proxy to register.

If the key is irrelevant it could be deleted from the instance, but note that customers cannot delete keys, this can only be done by ServiceNow maint users with read write access in the "ServiceNow Edge Encryption" Application.

If you switch to that application you can delete the key or keys from Scripts Background using one of these scripts:

Script to delete a key with a specific key_alias name:
var gr = new GlideRecord('sys_encryption_key');
gr.query('key_alias', 'KEY_ALIAS_NAME');
while ( {
Script to delete all the keys:
var gr = new GlideRecord('sys_encryption_key');
while ( {
Then you can create a new encryption key in the UI specifying the Key alias aes128 
The Cipher text value of the key will be updated on the instance when the proxy registers so there will not longer be a mismatch and the proxy will Resister without issue.
(2) For Cause (2) - Be sure that the key alias is defined correctly in all three places:

(a) Check the name of the encryption key alias in the keystore file using the keytool command example from below, note that the alias is case sensitive:

keytool -list -keystore keystore.jceks -storepass <password> -storetype jceks -v




Alias name: sb128v1
Creation date: Dec 21, 2018 
Entry type: SecretKeyEntry




(b) In this case the key alias is sb1128v1, make sure that if your file has these two properties defined that they refer to the correct key alias name, again this is also case sensitive:

edgeencryption.encrypter.key.2 = sb128v1
edgeencryption.encrypter.default.key128 = sb128v1


(c) Lastly in the UI at Encryption Key Configuration -> Set Up Keys the Key alias must also match, again this is case sensitive and in this case must be:


Article Information

Last Updated:2019-08-02 21:08:44