Extract passphrase from Jenkins' credentials.xml

前端 未结 5 1066
一整个雨季
一整个雨季 2021-01-30 01:36

I have added an SSH credential to Jenkins.

Unfortunately, I have forgotten the SSH passphrase and would now like to obtain it from Jenkins\' credential archive, which is

5条回答
  •  你的背包
    2021-01-30 02:18

    Yes you can get it back. It is AES encrypted and you have to do some things before like searching for the passphrase. Have a look into the Secret class.

    But you have look, there are already some scripts out there:

    https://github.com/tweksteen/jenkins-decrypt
    https://gist.github.com/menski/8f9980999ed43246b9b2

    More information and a way to do it with java, can you find here:

    What password encryption Jenkins is using?

提交回复
热议问题