How to generate a Foglight key using SHA-2 algorithm?
说明
By default, generating a new Foglight key uses DSA (SHA1withDSA). How to instruct the keytool to generate SHA-2 instead?
解决办法
When creating a key, add the option "-keyalg RSA" at the end of the command to use SHA256withRSA. If keyalg is not specified, it will be set to DSA by default and SHA1withDSA is used. For more information about the options, see this document link.