Migrate V1 to V2 - P12 Keystore
Convert a Version 1 p12 keystore to Version 2 for operations on Constellation Network.
Constellation Network has introduced a new version 2 standard for .p12
keystore files. These updated keystores are now required to access the Hypergraph and metagraph clusters.
Version 1 .p12
files are no longer supported.
📌 Purpose of This Guide
This guide is intended to help Node Operators still using version 1 .p12
files migrate their private key to the updated version 2 format, ensuring compatibility with current network requirements.
🛠️ Setup Requirements
1
Live Constellation Validator Node
Utilize an existing Constellation Network validator node with all components already installed.
2
Ephemeral VPS with nodectl
Build a temporary VPS, install nodectl, use its utility to migrate your p12 from version 1 to version 2.
3
Load utilities necessary only
Use an existing or build a temporary VPS and only install the utilities necessary to complete this guide.
Option 1: Use an Existing Node With nodectl
nodectl
If you already have nodectl
running:
Upload your version 1
.p12
file using the restore process.Refer to platform-specific steps:
Restore
.p12
from macOSRestore
.p12
from Windows
⚠️ Caution: Do not overwrite an existing or active
.p12
file in a running Validator node environment.
Option 2: Create a Temporary VPS
If you don’t have an existing node:
Provision a new Linux VPS (Debian-based preferred).
Upload your version 1
.p12
file.Install
nodectl
following the official documentation.
💡 Note: This VPS will not be used to run a Validator node. Its purpose is solely to install the required tools for migration.
✅ Minimum Requirements:
30GB of disk space
Internet connectivity
SSH access
Option 3: Manual Setup
Alternatively, install the required components manually:
java
haveged
cl-keytool.jar
cl-wallet.jar
📎 Still ensure the VPS or machine has at least 30GB of available disk space.
🔄 Begin the Conversion Process
Once setup is complete, proceed with the following steps.
Step 1: Upload Your .p12
File
.p12
FilePlace your original version 1 .p12
file (from macOS or Windows) into the working directory of your VPS.
Example path:
Step 2: Set Environment Variables
Export the following environment variables using your .p12
file details. Be precise—use double quotes and match spacing exactly.
Confirm the exports:
Expected output:
Step 3: Run the Migration Command
Run the following command to migrate the .p12
file to version 2 format:
✅ If successful, no output will appear. If there's an issue, an error will be printed.
Step 4: Verify the New File
List the directory to verify that a new version 2 .p12
file has been created:
Expected output (example):
Step 5: Test the New .p12
File
.p12
FileUpdate your CL_KEYSTORE
variable to point to the new file:
Now display the public key to confirm the file is valid:
Example output:
✅ Completion
Your .p12
file is now migrated from version 1 to version 2.
🔒 Important: Store the original version 1 file in a secure, offline (air-gapped) location temporarily.
🧪 Final Testing
To fully validate your new .p12
file:
Connect to the appropriate Constellation cluster (Layer0 or Layer1).
Export and verify the private key.
Use the new file in your validator setup or wallet integration.
🔁 Optional: Rename the New File
If you want to use the original filename, rename your new file:
⚙️ nodectl
Configuration (If Applicable)
nodectl
Configuration (If Applicable)If you're using nodectl
and kept the _v2
filename, make sure to update the configuration:
This ensures
nodectl
references the correct.p12
file for all future operations.
You have now successfully migrated and verified your .p12
keystore to the latest version, ensuring your validator remains compatible with Constellation Network's current infrastructure.
Last updated
Was this helpful?