Yep, but there seems a lot of steps involved in the CLI and there is not a clear how to step by step commands on the internet... So I tried the workaround for now.
Also, can the following commands be executed with a cut and paste in order to create a cli script or template for the self-signed Certificate?
Ex:
ArubaOS-Switch(config)# crypto pki enroll-self-signed certificate-name switch1 subject
Enter Common Name(CN) : switch1
Enter Org Unit(OU) : NetworkOperations
Enter Org Name(O) : My Company
Enter Locality(L) : CHI
Enter State(ST) : IL
Enter Country(C) :US