To use this function add it to the class library file named PluginSSHService.ts
GitHub Repository: https://github.com/SimonSparksUK/Orchestrator
Filename: PluginSSHService.ts
Description: Orchestrator Function to Change Pass Phrase of a Key Pair
Public Function: KeyPairChangePassPhrase
publicKeyPairChangePassPhrase(strPassPhraseOld:string,strPassPhraseNew:string):boolean{
try{
//@ts-ignore
KeyPairManager.changePassphrase(strPathToPrivateKeyFile,strPassPhraseOld,strPassPhraseNew);
returntrue;
}catch (objException){
this.objLogger.info("Failed to change passphrase:"+objException);
returnfalse;
}
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
