I was trying to find some information on feasibility of creating and deleting self-signed certificates in Salesforce Org programmatically, which could be incorporated into post sandbox creation/refresh script. Steps would include:

– deleting old certificates (usually done manually under Security Controls –> Certificate and Key Management); "Archive Current Key and Create New Key";

– creating self-signed certificate

– editing Single Sign-On Settings –> SAML Single Sign-On Settings

– editing Identity Provider settings

– editing Domain settings

Can you please tell me if anything of mentioned above can be done programmatically in Apex?



You must log in to answer this question.