After restoring a backup from another RSA Authentication Manager server in the Operations Console, existing RSA Authentication Agent API 8.5 agents, which uses TCP port 5500, do not work and nothing shows in the authentication logs, no authentication request is sent from the Authentication Agent API 8.5 to the Authentication Manager server.
With the /opt/rsa/am/server/logs/imsTrace.log file set to verbose, the following messages are found:
2015-11-17 19:34:50,954, [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'],
(AgentConfigPolicyAdministrationImpl.java:17),
trace.com.rsa.authmgr.internal.admin.configmgt.impl.AgentConfigPolicyAdministrationImpl,
DEBUG, rsa8.<domain>.com.local,,,,
Processing request for agent configuration.
2015-11-17 19:34:50,954, [[ACTIVE] ExecuteThread: '0' for queue:
'weblogic.kernel.Default (self-tuning)'],
(AgentConfigPolicyAdministrationImpl.java:17),
trace.com.rsa.authmgr.internal.admin.configmgt.impl.AgentConfigPolicyAdministrationImpl,
DEBUG, rsa8.<domain>.com.local,,,,
Agent with the given name: 192.168.1.251 was found.
2015-11-17 19:34:50,955, [[ACTIVE] ExecuteThread: '0' for queue:
'weblogic.kernel.Default (self-tuning)'], (DataObjectAccessSql.java:932),
trace.com.rsa.authmgr.internal.admin.common.dal.sql.DataObjectAccessSql, INFO, rsa8
<domain>.com.local,,,,
Executing HQL: select dataObject from com.rsa.authmgr.internal.admin.configmgt.dal.AgentConfigPolicy
as dataObject where dataObject.realmDefault = :param1
2015-11-17 19:34:50,956, [[ACTIVE] ExecuteThread: '0' for queue:
'weblogic.kernel.Default (self-tuning)'], (AgentConfigPolicyAdministrationImpl.java:17),
trace.com.rsa.authmgr.internal.admin.configmgt.impl.AgentConfigPolicyAdministrationImpl,
DEBUG, rsa8.<domain>.com.local,,,,
Agent configuration update is required for agent 192.168.1.251 as a new copy was found.
Before importing and restoring a database from another RSA Authentication Manager 8.x server, note the following system changes:
- Change the internal database super admin account and password to the RSA Authentication Manager 8.x instance from which the backup came.
- Change the Operations Console administrator account and password to the one from which the RSA Authentication Manager 8.x instance the backup came.
- Add an inactive console certificate from the the RSA Authentication Manager 8.x instance from which the backup came, including the root CA. In this way, the consoles will work, but the accounts have changed.
- Change the agent cert in Security Console:
- Go to Setup > System Settings.
- Under Authentication Settings, click the Agents link.
- Click the here link to configure agents using IPV6.
- Change the agent certs to be the same as the instance from which the back up came.
- Any existing API 8.5 agents (including RSA SecurID Access) that existed before the database restore will no longer work because they are encrypting with the original RSA Authentication Agent certs, so the agent will not be able to build the SSL connection and therefore, will not send any authentication requests
- Any sdconf.rec generated from now on will contain the root CA from the RSA Authentication Manager 8.x instance from which the backup came.
If you do not want the new API 8.5 agents from the imported/restored database, import the original agent certificate back into the RSA Authentication Manager 8.x server.
The root CA cert is included in the sdconf.rec file and is used by Agent API 8.5 agents; that is, the TCP 5500 authentication traffic (including RSA SecurID Access agents), instead of the old UDP 5500 authentication traffic.
When an RSA Authentication Manager 8.x database is restored to another RSA Authentication Manager 8.x server, there is a confusion over which root CA to use in the sdconf.rec:
- The one originally created at deployment, or
- The one in the restored backup.
This means that restoring an RSA Authentication Manager 8.x backup from another system breaks any TCP 5500 port Agent API 8.5 type traffic.
To fix this situation, you must extract the root CA cert from the original RSA Authentication Manager 8.x backup and import it into the new RSA Authentication Manager 8.x server using the steps below:
- Through the Security Console (Setup > System > Agents).
- Under Authentication Settings, click the Agents link then click the here link to configure agents using IPV6.
Image description
- Scroll down to bottom of page.
- Under Existing Certificate Details, you can see the current root CA information from the original deployment of this RSA Authentication Manager server:
Image description
- You can import the certificate of the new primary server by clicking Choose File to import the original root CA. The UI states "Use for migrating the agents to the new deployment." This is vaguely documented on page 463 of the RSA Authentication Manager 8.1 SP1 Administrator's Guide, under "Configure an IPv4/IPv6 Agent," where it says:
(Optional) In the Import Certificate of the New Primary Server field, click Browse to locate and import a new root certificate.
Note: You are required to import a new root certificate only if you are migrating agents to a new deployment. This feature supports migrations from RSA Authentication Manager 8.0 to future versions of Authentication Manager.
- To obtain a root CA from the original RSA Authentication Manager 8.x server, use openssl with the -showcerts option from within SSH:
rsaadmin@am82p:~> openssl s_client -showcerts -connect <name_IPaddr>:7004
CONNECTED (00000003)
depth=1 /CN=RSA root CA for am82p.vcloud.local/serialNumber=65c1331972306315d86e29174fbf3dd1eab360e47790154d5ba69ce884dab90d
verify error:num19:self signed certificate in certificate chain
verify return:0
---
- Running the openssl command shows the server certificate chain in red and the root CA certificate chain in blue:
Certificate chain
0 s:/CN=am82p.vcloud.local/serialNumber=7ff6116758773d4bdf96d336fa8dfd338dbb72131fe27a55f8700774800d69d
i:/CN=RSA root CA for am82p.vcloud.local/serialNumber=65c1331972306315d86e26174fbf3dd1eab360e47790154d5ba69ce884dab90d
-----BEGIN CERTIFICATE-----
MIIEijCCA3KgAwIBAgIQSb2hk3XXoLOGXMHyu2zGtzANBgkqhkiG9w0BAQsFADBj
MQswCQYDVQQGEwJVUzEYMBYGA1UEChMPRU1DIENvcnBvcmF0aW9uMSUwIwYDVQQL
ExxHbG9iYWwgU2VjdXJpdHkgT3JnYW5pemF0aW9uMRMwEQYDVQQDEwpFTUMgU1NM
IENBMB4XDTE3MDYyMTE5Mzc1M1oXDTIwMDYyMTE5Mzc1M1owgYUxCzAJBgNVBAYT
AlVTMRYwFAYDVQQIEw1NYXNzYWNodXNldHRzMRAwDgYDVQQHEwdCZWRmb3JkMRkw
FwYDVQQKExBSU0EgU2VjdXJpdHkgTExDMRQwEgYDVQQLEwtSU0EgU3VwcG9ydDEb
MBkGA1UEAxMSYW04MnAudmNsb3VkLmxvY2FsMIIBIjANBgkqhkiG9w0BAQEFAAOC
AQ8AMIIBCgKCAQEAm58FfKsyY2uLfduyxm4HxaPvfySb06WRH5iTt+2RIGBvVWKO
mEhDvYOwkDLkFlhRrbWqf6xlfkIqY/lrdtFav1m42GLR18mwVQQ78SsABGbH+Kl8
An7EEqOumuYYviqhTx4EecZejqixDixyl2966/csr+EvAwG/8IoTGIYnx2U8dGRj
BuEShYTTROqNj4HxkAjnuNn+SxG6b2UkWALBwpeCTD0aYNHzVHbpKNUiBTFMwTOP
9IZSPIsEw96ex9Ojc1AQn50BbwiAfJXJ9JvSmulHGdY6DLaMK/ReOcW1gva58vK5
agOFYU0r07nrj6Ku0xS3Dhx2Kp/DKMDQMr1ruQIDAQABo4IBFTCCAREwDgYDVR0P
AQH/BAQDAgO4MBEGCWCGSAGG+EIBAQQEAwIGwDAdBgNVHREEFjAUghJhbTgycC52
Y2xvdWQubG9jYWwwHwYDVR0jBBgwFoAU7setF5AcQb3XE7/jvnrQxKLuxwUwHQYD
VR0lBBYwFAYIKwYBBQUHAwEGC1sGAQUFBwMCMB0GA1UdDgQWBBSTUwcIocMETsUh
PN+6AK5l8SWalDBuBgNVHR8EZzBlMDOgMaAvhi1odHRwOi8vZW50ZXJwcmlzZWNh
LmNvcnAuZW1jLmNvbS9FTUNTU0xDQS5jcmwwLq11oCqGKGh0dHA6Ly9wa2kuY29y
cC5lbWMuY29tL2NybC9FTUNTU0xDQS5jcmwwDQYJKoZIhvcNAQELBQADggEBADAL
wLyjYb7illE0q+knng7sZso4LRuD4RgxYF/f50IEg8MdZlTVvH1QWA3H9g/zQ2i5
2S107cRwx3paxgSXb9zfX1Krgojx6I4fFJPxE6aIt7MUI+oTbjaClnr/dA58XoET
/zzs2cZ0G1Ho40tQ78lJZpd6nPWuhCgzcqw4/d6EnshjYqoseS1GGNE9ZDjT1m6N
eUdyGAt9Q/55T3WQI0KmszaYgo/mgWEFyM9hbzHgCudSq9qT7lxwT1hHAYjfbWqU
g4ApcZnsud9rhxR+UahD8lYwEExo2yfqmDFLVa5hxFtqgFwnP5QF1r1QV8zEqBAO
vDhttxjT59IRStKJQTU=
-----END CERTIFICATE-----
1 s:/RSA root CA for am82p.vcloud.local/serialNumber=7ff6116758773d4bdf96d336fa8dfd338dbb72131fe27a55f8700774800d69d
i:/CN=RSA root CA for am82p.vcloud.local/serialNumber=7ff6116758773d4bdf96d336fa8dfd338dbb72131fe27a55f8700774800d69d
----BEGIN CERTIFICATE-----
MIIDajCCAlKgAwIBAgIQDnpJf/sai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Qg
0dIifLaHr2Nugkg8eTcp+F2rl2YIjnQcEFqOUNhyI8kPzzsWinYel47tC9kDL7qR
s34MLubs2L1iMIk7fJ4=
-----END CERTIFICATE-----
- Copy and paste the cert into a text editor such as Notepad and save as a .cer file.
- Make sure the file includes the -----BEGIN CERTIFICATE----- as the first line at the top of the file and -----END CERTIFICATE----- at the bottom, as the last line, like this:
- Edit the sdconf.rec with a text editor, such as Notepad++.
- Scroll down past the encrypted characters to the bottom.
- Enable word wrap.
- Look for the delimiter with X509 in it, as shown:
- In between the start <bootstrap:X509Certificate>and stop </bootstrap:X509Certificate> is the certificate. Copy all of the text to a buffer. For example,
MIIDnjCCAoagAwIBAgIQi8nZ9+145MSlQkXpRicAjANBgkqhkiG9w0BAQUFADBMT
IwMAYDVQQDDClSU0Egcm9vdCBDQSBmb3Igam11bHNtYW4tdm0xMTUubmEucnNhLm
5ldDFJMEcGA1UEBRNANjVjMTMzMTk3MjMwNjMxNWQ4NmUyNjE3NGZiZjNkZDFlYW
IzNjBlNDc3OTAxNTRkNWJhNjljZTg4NGRhYjkwZDAeFw0xNDA4MjcxNDUzMjRaFw
0zNzAxMDEwNTAwMDBaMH8xMjAwBgNVBAMMKVJTQSByb290IENBIGZvciBqbXVsc2
1hbi12bTExNS5uYS5yc2EubmV0MUkwRwYDVQQFE0A2NWMxMzMxOTcyMzA2MzE1ZD
g2ZTI2MTc0ZmJmM2RkMWVhYjM2MGU0Nzc5MDE1NGQ1YmE2OWNlODg0ZGFiOTBkMI
IBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0Sh9lh1nCH6eAAt4C+buA3
YCd+WPyPwSym8bi2Xt9la0llEMqd1XuQknQQRdOU8A9Mlr8T8y2Imj8NCkTgcXcs
eoFnRoPImmL6Ch4f175xc61569boZIXa7MoGj7tIHG6TQ54xfiGoTSF1OMTqUJ8K
h1ysFfioORFPcX2llsBdZoLrMTjSsvaGzNVPp684822W4I1Peiaa0o1ppimZICF3
fIa0jAQUlXUDI2mo0ULayPgl3czQgOIZ5z13hM3CV0buTnUqJTu5mEvqASIZripM
tZw13eNkUhC7b3185zCXHVlVd1fE3QMGyaMi6cJdKhu8JZwJRYGlbRNywIDAQABo
xYwFDASBgNVHRMBAf8ECDAGAQHAgEBMA0GCSqGSIb3DQEBBQUAA4IBAQCbcxIUdp
cUVgkeq4qEmagFaOavzDhpBbiAGxPv4F3dWOsHSyq4sykWRe4simwTSxEQnXO5vg
Ob9Fsed6Fb5qxIdCpYkoweURVeJ6aBhqzmWq0nSb7X2nT7Ft26tydVWRD+YYkPOJ
YLGrMxthtaU0zwjBtHs+IThfxLR1cLRFIpJCbHa1FtVSQetoxAYryZuXjh8FkktB
gW6BNR7lfwK6Bzcyjflya9OPkwOUoWNqC1YkbgsEYkLGmKaYEt2a698IrwrzfRR8
hsN346XFMVhFd+CIz2Fn37NyCE0BMF3bq7h3x8QPDcZochs0PUn2DRTeFHyWF7M7
LNVj3oJ3JOp
- Paste the text to a text editor.
- Add -----BEGIN CERTIFICATE----- to the top line of the file, ensuring that it is the only text on the line.
- Add -----END CERTIFICATE----- at the bottom, as the last line, ensuring that is the only text on the line.
- When done, the file should look as what is shown here:
-----BEGIN CERTIFICATE-----
MIIDnjCCAoagAwIBAgIQi8nZ9+145MSlQkXpRicAjANBgkqhkiG9w0BAQUFADBMT
IwMAYDVQQDDClSU0Egcm9vdCBDQSBmb3Igam11bHNtYW4tdm0xMTUubmEucnNhLm
5ldDFJMEcGA1UEBRNANjVjMTMzMTk3MjMwNjMxNWQ4NmUyNjE3NGZiZjNkZDFlYW
IzNjBlNDc3OTAxNTRkNWJhNjljZTg4NGRhYjkwZDAeFw0xNDA4MjcxNDUzMjRaFw
0zNzAxMDEwNTAwMDBaMH8xMjAwBgNVBAMMKVJTQSByb290IENBIGZvciBqbXVsc2
1hbi12bTExNS5uYS5yc2EubmV0MUkwRwYDVQQFE0A2NWMxMzMxOTcyMzA2MzE1ZD
g2ZTI2MTc0ZmJmM2RkMWVhYjM2MGU0Nzc5MDE1NGQ1YmE2OWNlODg0ZGFiOTBkMI
IBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0Sh9lh1nCH6eAAt4C+buA3
YCd+WPyPwSym8bi2Xt9la0llEMqd1XuQknQQRdOU8A9Mlr8T8y2Imj8NCkTgcXcs
eoFnRoPImmL6Ch4f175xc61569boZIXa7MoGj7tIHG6TQ54xfiGoTSF1OMTqUJ8K
h1ysFfioORFPcX2llsBdZoLrMTjSsvaGzNVPp684822W4I1Peiaa0o1ppimZICF3
fIa0jAQUlXUDI2mo0ULayPgl3czQgOIZ5z13hM3CV0buTnUqJTu5mEvqASIZripM
tZw13eNkUhC7b3185zCXHVlVd1fE3QMGyaMi6cJdKhu8JZwJRYGlbRNywIDAQABo
xYwFDASBgNVHRMBAf8ECDAGAQHAgEBMA0GCSqGSIb3DQEBBQUAA4IBAQCbcxIUdp
cUVgkeq4qEmagFaOavzDhpBbiAGxPv4F3dWOsHSyq4sykWRe4simwTSxEQnXO5vg
Ob9Fsed6Fb5qxIdCpYkoweURVeJ6aBhqzmWq0nSb7X2nT7Ft26tydVWRD+YYkPOJ
YLGrMxthtaU0zwjBtHs+IThfxLR1cLRFIpJCbHa1FtVSQetoxAYryZuXjh8FkktB
gW6BNR7lfwK6Bzcyjflya9OPkwOUoWNqC1YkbgsEYkLGmKaYEt2a698IrwrzfRR8
hsN346XFMVhFd+CIz2Fn37NyCE0BMF3bq7h3x8QPDcZochs0PUn2DRTeFHyWF7M7
LNVj3oJ3JOp
-----END CERTIFICATE-----
- Save the file with an extension of .cer.
- Open the file with Microsoft Crypto Shell Extensions to read this cert info or optionally, paste into a certificate tool web site.