"Attempting proxy register retry" and "Successfully registered this proxy "" with the ServiceNow instance ":443"" Repeat in edgeencryption.logDescription<!-- div.margin{ padding: 10px 40px 40px 30px; } table.tocTable{ border: 1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); padding-top: .6em; padding-bottom: .6em; padding-left: .9em; padding-right: .6em; } table.noteTable{ border:1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); width: 100%; border-spacing:2; } table.internaltable { white-space:nowrap; text-align:left; border-width: 1px; border-collapse: collapse; font-size:14px; width: 85%; } table.internaltable th { border-width: 1px; padding: 5px; border-style: solid; border-color: rgb(245, 245, 245); background-color: rgb(245, 245, 245); } table.internaltable td { border-width: 1px; padding: 5px; border-style: solid; border-color: #E0E0E0; color: #000000; } .title { color: #D1232B; font-weight:normal; font-size:28px; } h1{ color: #D1232B; font-weight:normal; font-size:21px; margin-bottom:-5px } h2{ color: #646464; font-weight:bold; font-size:18px; } h3{ color: #000000; font-weight:BOLD; font-size:16px; text-decoration:underline; } h4{ color: #646464; font-weight:BOLD; font-size:15px; text-decoration:; } h5{ color: #000000; font-weight:BOLD; font-size:13px; text-decoration:; } h6{ color: #000000; font-weight:BOLD; font-size:14px; text-decoration:; } ul{ list-style: disc outside none; margin-left: 0; } li { padding-left: 1em; } --> Symptoms 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 "test1.service-now.com:443" 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 "test1.service-now.com:443" 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 "test1.service-now.com:443" 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 "test1.service-now.com:443" 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 "test1.service-now.com:443" ... Release This could apply to any release. Cause 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: 77eQ77eR77eSYWVzMTI477es77eTZml4ZWTvt6zvt5Qx77es77etUVVWVFh6RTJYMko1ZEdWelgybDJYdz09N2ZKeDJGdlRraGhJNjVCMjZ6em41R0xraEdNVUhMSk1Zb1Flbnp3dVh3V1AtbjRpdFNYWlpKQkozUlZZSVBNVe+3ru+3rw== 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: 77eQ77eR77eSYWVzMTI477es77eTZml4ZWTvt6zvt5Qx77es77etUVVWVFh6RTJYMko1ZEdWelgybDJYdz09cUdqcUZlVUFwekNCbUdsR0M4b0VOakFFYklRbHFQVElvVUdFR0RZMWE2WUdkbE1IbkktalFhbGxKTldHbVJyZe+3ru+3rw== 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 edgeencryption.properties 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, edgeencryption.properties file, Encryption Keys defined in the UI) can cause this error Resolution (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 (gr.next()) { gr.deleteRecord(); } Script to delete all the keys: var gr = new GlideRecord('sys_encryption_key'); gr.query(); while (gr.next()) { gr.deleteRecord(); } 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 edgeencryption.properties 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 and 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: sb128v1 <!-- p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 17.0px; font: 14.0px Times; color: #000000; -webkit-text-stroke: #000000} span.s1 {font-kerning: none} -->