@Sheetal11 , Please refer this to generate the Public key and Private
key using open SSL with a custom expiration. Generating Public and
Private Keys using OpenSSL 2).
https://experienceleague.adobe.com/docs/experience-manager-learn/foundation/authentication/set-up-public-private-keys-for-use-with-aem-and-adobe-io.html?lang=en