The following example generates a certificate in binary X.509 format. To export a human
readable certificate from AWS CloudHSM, add -rfc
to the
-exportcert
command.
keytool -exportcert -alias
<key pair label>
\ -file example_exported_certificate.crt \ -keystore example_keystore.store \ -storetype CLOUDHSM \ -J-classpath '-J/opt/cloudhsm/java/*' \ -J-Djava.library.path=/opt/cloudhsm/lib/