The tpm cert rotate action is used to replace an existing entry with one from another file.
This has the same effect as executing tpm cert add -f
Usage: tpm cert rotate|ro|swap|sw {sourceTypeSpec}
{targetTypeSpec} [alias] [passwordSpec]
For the list of available {typeSpec} for this action,
see Section 9.5.2.10, “Using tpm cert add”
Examples:
shell>tpm cert rotate mysqlp12 keystore mysqlshell>tpm cert rotate P12_FILE connector_keystore mysqlshell>tpm cert ro tls thl_keystoreshell>tpm cert ro CA_DIR connector_keystore,connector_truststoreshell>tpm cert ro CA_DIR CJ,CT -x