4

After I have installed Jenkins (on Windows), the program folder contains, among others, two files:

  • identity.key (28 lines)

    -----BEGIN RSA PRIVATE KEY-----
    MIIEow......
    ...
    -----END RSA PRIVATE KEY-----
    
  • secret.key (64 characters)

    d6....38
    

(I've already asked on the Jenkins mailing list, but didn't get any response there.)

Can anyone explain what these two files are used for by Jenkins/Hudson?

I'm specifically interested whether:

  • I need to backup them?
  • they are machine specific, i.e. if I need to do anything about these files when moving the Jenkins/Hudson server to a different machine.
Martin
  • 563
  • 4
  • 10
  • 25

1 Answers1

3

According to the Internet: What are the .key files for?

Short story:

I strongly suggest backing up the files somewhere. As already mentioned in this thread, the secret.key is used to encrypt sensitive data in configuration files, e.g. the proxy password in update center. Without the key file these configuration values are useless.

Ian Boyd
  • 5,131
  • 14
  • 57
  • 79
Maclovin
  • 249
  • 1
  • 2
  • 11
  • Jenkins groups are currently hosted on Google Groups: http://groups.google.com/group/jenkinsci-dev/browse_frm/thread/d58d3e5b9952e88e?hl=en# – Martin Jul 20 '11 at 14:44