I am trying to add multiple key usages to a certificate when using java keytool to generate the certificate. It is only picking up the last one listed.
keytool -genkeypair -keystore keystore.jks -validity 3650 -alias test
-keysize 2048 -keyalg RSA -storetype JKS
-ext KeyUsage=digitalSignature -ext KeyUsage=keyEncipherment
-ext KeyUsage=keyCertSign
The documentation says you can use the -ext argument many times. What am I doing wrong?