Refactor GenerateUserCerts
to create App Sessions
#39970
Merged
GenerateUserCerts
to create App Sessions
#39970