@open-agent-trust/cli
Advanced tools
@@ -55,4 +55,4 @@ "use strict"; | ||
| const kid = `${options.issuerId}-${dateStr}`; | ||
| // Save private key with .pem extension (avoid .key which macOS opens as Keynote) | ||
| const privateKeyPath = path.join(options.outDir, `${options.issuerId}.private.pem`); | ||
| // Industry standard .pem extension | ||
| const privateKeyPath = path.join(options.outDir, `${options.issuerId}.pem`); | ||
| fs.writeFileSync(privateKeyPath, privateKeyBase64Url, { mode: 0o600 }); | ||
@@ -67,2 +67,6 @@ console.log(`✅ Keypair generated successfully!\n`); | ||
| console.log(`⚠️ Keep your private key secret. Never commit it to a repo.\n`); | ||
| console.log(` To view it: cat ${privateKeyPath}`); | ||
| console.log(` To secure it: chmod 600 ${privateKeyPath}\n`); | ||
| console.log(` Note: Do not double-click the .pem file. On macOS, this opens`); | ||
| console.log(` Keychain Access. Always use 'cat' or a text editor from the terminal.\n`); | ||
| console.log(`Next steps:\n`); | ||
@@ -80,3 +84,2 @@ console.log(` 1. Add your public key to your agent.json for Tier 3 identity:\n`); | ||
| console.log(` --contact security@yourdomain.com --public-key ${publicKeyBase64Url}\n`); | ||
| console.log(` 4. To read your private key: cat ${privateKeyPath}\n`); | ||
| } | ||
@@ -83,0 +86,0 @@ catch (err) { |
+1
-1
| { | ||
| "name": "@open-agent-trust/cli", | ||
| "version": "1.0.2", | ||
| "version": "1.0.4", | ||
| "description": "CLI utilities for the Open Agent Trust Registry", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -25,4 +25,4 @@ import * as ed from '@noble/ed25519'; | ||
| // Save private key with .pem extension (avoid .key which macOS opens as Keynote) | ||
| const privateKeyPath = path.join(options.outDir, `${options.issuerId}.private.pem`); | ||
| // Industry standard .pem extension | ||
| const privateKeyPath = path.join(options.outDir, `${options.issuerId}.pem`); | ||
| fs.writeFileSync(privateKeyPath, privateKeyBase64Url, { mode: 0o600 }); | ||
@@ -39,2 +39,6 @@ | ||
| console.log(`⚠️ Keep your private key secret. Never commit it to a repo.\n`); | ||
| console.log(` To view it: cat ${privateKeyPath}`); | ||
| console.log(` To secure it: chmod 600 ${privateKeyPath}\n`); | ||
| console.log(` Note: Do not double-click the .pem file. On macOS, this opens`); | ||
| console.log(` Keychain Access. Always use 'cat' or a text editor from the terminal.\n`); | ||
| console.log(`Next steps:\n`); | ||
@@ -52,3 +56,2 @@ console.log(` 1. Add your public key to your agent.json for Tier 3 identity:\n`); | ||
| console.log(` --contact security@yourdomain.com --public-key ${publicKeyBase64Url}\n`); | ||
| console.log(` 4. To read your private key: cat ${privateKeyPath}\n`); | ||
@@ -55,0 +58,0 @@ } catch (err) { |
34964
1.09%712
0.85%