当前位置:网站首页>tiup mirror genkey
tiup mirror genkey
2022-08-01 20:34:00 【添香小铺】
在 TiUP 镜像的定义中,有三类角色:
- 镜像管理员:拥有
root.json、index.json、snapshot.json以及timestamp.json的修改权限 - 组件管理员:拥有相关组件的修改权限
- 普通用户:可以下载并使用组件
由于修改文件需要相关的管理员进行签名,因此管理员必须拥有自己的私钥。命令 tiup mirror genkey 就是用于生成私钥的。
警告
请勿通过网络传输私钥。
语法
tiup mirror genkey [flags]
选项
-n, --name
- 密钥的名字,该名字决定最终生成的文件名。生成的私钥文件路径为:
${TIUP_HOME}/keys/{name}.json,其中TIUP_HOME为 TiUP 的 Home 目录,默认路径为$HOME/.tiup,name为-n/--name指定的密钥名字。 - 数据类型:
STRING - 如果不指定该选项,密钥名默认为
private。
-p, --public
- 显示当前私钥对应的公钥,当前私钥名字由
-n/--name选项指定。 - 当指定了
-p/--public时,不会创建新的私钥。若-n/--name指定的私钥不存在,则报错。 - 数据类型:
BOOLEAN - 该选项默认关闭,默认值为
false。在命令中添加该选项,并传入true值或不传值,均可开启此功能。
--save
- 将公钥信息储存为文件放置于当前目录,文件名称为
{hash-prefix}-public.json,其中hash-prefix为该密钥 ID 的前 16 位。 - 数据类型:
BOOLEAN - 该选项默认关闭,默认值为
false。在命令中添加该选项,并传入true值或不传值,均可开启此功能。
输出
- 若未指定
-p/--public:- 若指定的密钥已存在:
Key already exists, skipped - 若指定的密钥不存在:
private key have been write to ${TIUP_HOME}/keys/{name}.json
- 若指定的密钥已存在:
- 若指定
-p/--public:- 若指定的密钥不存在:
Error: open ${TIUP_HOME}/keys/{name}.json: no such file or directory - 若指定的密钥存在:输出该密钥对应的公钥内容
- 若指定的密钥不存在:
边栏推荐
- KDD2022 | 自监督超图Transformer推荐系统
- 二维、三维、四维矩阵每个维度含义解释
- Goroutine Leaks - The Forgotten Sender
- 宝塔搭建PESCMS-Ticket开源客服工单系统源码实测
- Batch get protein .pdb files based on Uniprot ID/PDB ID
- [Multi-task optimization] DWA, DTP, Gradnorm (CVPR 2019, ECCV 2018, ICML 2018)
- 实用新型专利和发明专利的区别?秒懂!
- 作为程序员你应该会的软件
- Zheng Xiangling, Chairman of Tide Pharmaceuticals, won the "2022 Outstanding Influential Entrepreneur Award" Tide Pharmaceuticals won the "Corporate Social Responsibility Model Award"
- "No title"
猜你喜欢

vant实现Select效果--单选和多选
![[Energy Conservation Institute] Ankerui Food and Beverage Fume Monitoring Cloud Platform Helps Fight Air Pollution](/img/ca/e67c8e2196adb5a078acc44ba5ad6f.jpg)
[Energy Conservation Institute] Ankerui Food and Beverage Fume Monitoring Cloud Platform Helps Fight Air Pollution
![[Multi-task optimization] DWA, DTP, Gradnorm (CVPR 2019, ECCV 2018, ICML 2018)](/img/a1/ec038eeb6c98c871eb31d92569533d.png)
[Multi-task optimization] DWA, DTP, Gradnorm (CVPR 2019, ECCV 2018, ICML 2018)

Buttons with good user experience should not have hover state on mobile phones

SIPp installation and use

数据库内核面试中我不会的问题(1)

用户身份标识与账号体系实践

Where should I prepare for the PMP exam in September?

使用Huggingface在矩池云快速加载预训练模型和数据集

Zheng Xiangling, Chairman of Tide Pharmaceuticals, won the "2022 Outstanding Influential Entrepreneur Award" Tide Pharmaceuticals won the "Corporate Social Responsibility Model Award"
随机推荐
StringTable详解 串池 性能调优 字符串拼接
面试突击70:什么是粘包和半包?怎么解决?
模板特例化和常用用法
Remove 360's detection and modification of the default browser
专利检索常用的网站有哪些?
微信小程序云开发|个人博客小程序
宝塔搭建PESCMS-Ticket开源客服工单系统源码实测
[Personal Work] Remember - Serial Logging Tool
Use WeChat official account to send information to designated WeChat users
AQS原理和介绍
Failed to re-init queues : Illegal queue capacity setting (abs-capacity=0.6) > (abs-maximum-capacity
[Energy Conservation Institute] Comparative analysis of smart small busbar and column head cabinet solutions in data room
Failed to re-init queues : Illegal queue capacity setting (abs-capacity=0.6) > (abs-maximum-capacity
【无标题】
【Dart】dart之mixin探究
卷积神经网络(CNN)mnist数字识别-Tensorflow
Godaddy域名解析速度慢问题以及如何使用DNSPod解析解决
[Multi-task optimization] DWA, DTP, Gradnorm (CVPR 2019, ECCV 2018, ICML 2018)
[Multi-task learning] Modeling Task Relationships in Multi-task Learning with Multi-gate Mixture-of-Experts KDD18
数据库内核面试中我不会的问题(1)