Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: More formatting, fixes

...

("docker attach go-server" also works in fact, because there is already a shell session to attach to, but in the future the container might be set up differently, and in that case if there's no shell session in the terminal there is  a risk that you try to CTRL-C to get out of the attached terminal, or exit the shell session.   Depending on the container setup, this might stop the process and ultimately the container.  The  The safest way is therefore to start a new shell that you can later exit out of without problems.)

...

It is apparently required to convert format, an and set a passphrase on the key.  For simplicity I'm reusing the same password .  For the privkey it's only temporarily used but later, in the keystore it must be that password from what I understand from the documentation: throughout and the Go.CD documentation says it must be the following:
serverKeystorepa55w0rd

  $ openssl rsa -des3 -in privkey.pem -out privkey.key.new

...

In this step the new privkey we created of course needs be decrypted again.  For pass phrase, enter serverKeystorepa55w0rd.  Then for export password, we use the same (this is the one that is actually required by Go.CD later on).Input the previously used password to decrypt, then use the same again, for the output stage.


Finally, Java prefers a so called "keystore" format.  The keytool comes with Java.

...