LATEST VERSION: 1.6 - CHANGELOG
PCF IPsec Add-On v1.6

Rotating IPsec Credentials

Page last updated:

This topic describes the process Pivotal recommends to increase deployment security by rotating credentials in the IPsec manifest. Your organizational security policy may specify how often you should apply these changes.

There are two procedures for credential rotation described in this topic.

  • The first procedure describes rotating the instance certificate and instance private key specified in your IPsec manifest, and requires updating BOSH. This procedure does not include rotating the certificate authority (CA) certificate.

  • The second procedure describes rotating your CA certificate in addition to your instance certificate and instance private key. This procedure requires updating BOSH three times.

Note: The rolling deploys during these procedures result in minimal deployment downtime.

Procedure 1: Rotate the Instance Certificate and Instance Private Key

Follow the steps below to rotate the instance certificate and instance private key.

  1. Generate a new certificate and use your existing IPsec CA certificate to sign the new certificate.

  2. Update the instance certificate and the private key fields in your ipsec-addon.yml file with new values from the previous step.

  3. Run the following command:

    $ bosh update runtime-config PATH/MYPRODUCT_ipsec-addon.yml
    

    Note: The following step results in a few minutes of application downtime.

  4. Navigate to your Ops Manager interface in a browser, and click Apply Changes.

Procedure 2: Rotate the CA Certificate, the Instance Certificate, and Instance Private Key

Follow these steps below to rotate the CA certificate, the instance certificate, and instance private key.

  1. Generate a new CA certificate.

  2. Append the newly generated CA certificate under the existing certificate in your ipsec-addon.yml.

  3. Run the following command:

    $ bosh update runtime-config PATH/MYPRODUCT_ipsec-addon.yml

    Note: The following step results in a few minutes of application downtime.

  4. Navigate to your Ops Manager interface in a browser, and click Apply Changes.

  5. Generate a new certificate and use your new IPsec CA certificate to sign the new certificate.

  6. Update the instance certificate and the private key fields in the YAML file with new values from above.

  7. Run the following command:

    $ bosh update runtime-config PATH/MYPRODUCT_ipsec-addon.yml

    Note: The following step results in a few minutes of application downtime.

  8. Navigate to your Ops Manager interface in a browser, and click Apply Changes.

  9. Delete the older CA certificate in the ipsec-addon.yml file.

  10. Run the following command:

    $ bosh update runtime-config PATH/MYPRODUCT_ipsec-addon.yml

    Note: The following step results in a few minutes of application downtime.

  11. Navigate to your Ops Manager interface in a browser, and click Apply Changes.

Create a pull request or raise an issue on the source for this page in GitHub