/opt/dell/srvadmin/sbin/srvadmin-services.sh stop
cd /opt/dell/srvadmin/lib64/openmanage/jre/bin
./keytool -genkey --dname "CN=server.k2patel.in, ou=Dell, O=Dell, c=US" -alias dellcert --storepass Dell123 -validity 900 -keyalg RSA -keysize 4096 -sigalg SHA512withrsa --storetype pkcs12 -keystore delcert.pfx
./keytool -list -keystore delcert.pfx -storepass Dell123 -storetype PKCS12 -v
/opt/dell/srvadmin/bin/omconfig preferences webserver attribute=uploadcert certfile=delcert.pfx type=pkcs12 password=Dell123 webserverrestart=true
/opt/dell/srvadmin/sbin/srvadmin-services.sh start