- Security >
- Authentication >
- Internal Authentication >
- Upgrade from Keyfile Authentication to x.509 Authentication
Upgrade from Keyfile Authentication to x.509 Authentication¶
To upgrade clusters that are currently using keyfile authentication to x.509 authentication, use the following rolling upgrade processes.
Clusters Currently Using TLS/SSL¶
For clusters using TLS/SSL and keyfile authentication, to upgrade to x.509 cluster authentication, use the following rolling upgrade process:
For each node of a cluster, start the node with the option
--clusterAuthModeset tosendKeyFileand the option--sslClusterFileset to the appropriate path of the node’s certificate. Include other TLS/SSL options as well as any other options that are required for your specific configuration. For example:With this setting, each node continues to use its keyfile to authenticate itself as a member. However, each node can now accept either a keyfile or an x.509 certificate from other members to authenticate those members. Upgrade all nodes of the cluster to this setting.
Then, for each node of a cluster, connect to the node and use the
setParametercommand to update theclusterAuthModetosendX509. [1] For example,With this setting, each node uses its x.509 certificate, specified with the
--sslClusterFileoption in the previous step, to authenticate itself as a member. However, each node continues to accept either a keyfile or an x.509 certificate from other members to authenticate those members. Upgrade all nodes of the cluster to this setting.Optional but recommended. Finally, for each node of the cluster, connect to the node and use the
setParametercommand to update theclusterAuthModetox509to only use the x.509 certificate for authentication. [1] For example:After the upgrade of all nodes, edit the configuration file with the appropriate x.509 settings to ensure that upon subsequent restarts, the cluster uses x.509 authentication.
See --clusterAuthMode for the various modes and their
descriptions.
Clusters Currently Not Using TLS/SSL¶
For clusters using keyfile authentication but not TLS/SSL, to upgrade to x.509 authentication, use the following rolling upgrade process:
For each node of a cluster, start the node with the option
--sslModeset toallowSSL, the option--clusterAuthModeset tosendKeyFileand the option--sslClusterFileset to the appropriate path of the node’s certificate. Include other TLS/SSL options as well as any other options that are required for your specific configuration. For example:The
--sslMode allowSSLsetting allows the node to accept both TLS/SSL and non-TLS/non-SSL incoming connections. Its outgoing connections do not use TLS/SSL.The
--clusterAuthMode sendKeyFilesetting allows each node continues to use its keyfile to authenticate itself as a member. However, each node can now accept either a keyfile or an x.509 certificate from other members to authenticate those members.Upgrade all nodes of the cluster to these settings.
Then, for each node of a cluster, connect to the node and use the
setParametercommand to update thesslModetopreferSSLand theclusterAuthModetosendX509. [1] For example:With the
sslModeset topreferSSL, the node accepts both TLS/SSL and non-TLS/non-SSL incoming connections, and its outgoing connections use TLS/SSL.With the
clusterAuthModeset tosendX509, each node uses its x.509 certificate, specified with the--sslClusterFileoption in the previous step, to authenticate itself as a member. However, each node continues to accept either a keyfile or an x.509 certificate from other members to authenticate those members.Upgrade all nodes of the cluster to these settings.
Optional but recommended. Finally, for each node of the cluster, connect to the node and use the
setParametercommand to update thesslModetorequireSSLand theclusterAuthModetox509. [1] For example:With the
sslModeset torequireSSL, the node only uses TLS/SSLs connections.With the
clusterAuthModeset tox509, the node only uses the x.509 certificate for authentication.After the upgrade of all nodes, edit the configuration file with the appropriate TLS/SSL and x.509 settings to ensure that upon subsequent restarts, the cluster uses x.509 authentication.
See --clusterAuthMode for the various modes and their
descriptions.
| [1] | (1, 2, 3, 4) As an alternative to using the
setParameter command, you can also
restart the nodes with the appropriate TLS/SSL and x509 options and
values. |