美文网首页
秘钥文件格式

秘钥文件格式

作者: Otis4631 | 来源:发表于2021-11-12 16:52 被阅读0次
  • BEGIN RSA PRIVATE KEY indicates "PKCS#1" or "PEM" key format, which is Base64 encoding of an ASN.1 DER serialized structure. It's a basic ASN.1 sequence containing the RSA parameters (n, e, d, p, q, etc).

    OpenSSH actually has traditionally used this format as well – because it already uses OpenSSL's cryptographic code, so the "load key" and "write key" functions were also conveniently available.

    This means you can use ssh-keygen -m PEM to generate or convert such keys.

  • BEGIN PRIVATE KEY indicates "PKCS#8" key format (unencrypted); the contents are very similar to the above format, with the same RSA parameters nested inside another structure that indicates that it is indeed an RSA key.

    Compared to PEM, the PKCS#8 format more cleanly separates the "payload" (key algorithm, encryption) from the outer Base64 wrapper. It doesn't change the meaning of the data though.

    OpenSSH will recognize this format too (due to its OpenSSL usage for key loading).

  • BEGIN OPENSSH PRIVATE KEY is a format invented by OpenSSH for OpenSSH. This time it uses the SSHv2 packet serialization instead of DER.

    OpenSSH now uses this format so that it could avoid depending on OpenSSL entirely, and/or so that it could add new key algorithms without waiting for PKIX to standardize an ASN.1 serialization format (which otherwise has absolutely nothing to do with SSH) and then waiting for OpenSSL to implement it.

  • PuTTY has its own .ppk format. You can use /usr/bin/puttygen to convert between all of them.

  • See also: OpenSSH public key file format?

相关文章

  • 秘钥文件格式

    BEGIN RSA PRIVATE KEY indicates "PKCS#1" or "PEM" key for...

  • Diffie-Hellman秘钥交换

    什么是秘钥交换 秘钥交换也叫秘钥协商,在进行对称加密的时候,怎么进行安全的传送秘钥呢?需要使用秘钥交换。 Diff...

  • linux秘钥登录+普通用户sudo权限

    linux秘钥登录 文件准备 秘钥准备 下载私钥 尝试秘钥连接 同样的操作把root用户的秘钥也保留一份 系统配置...

  • HTTPS的混合加密机制

    HTTPS采用共享秘钥加密和公开秘钥加密两者并用的混合加密机制。 什么是共享秘钥加密? 共享秘钥加密也称对称加密,...

  • 获取秘钥、生成新秘钥

    一: 查看本地秘钥 二:生成新的秘钥

  • Ubuntu免密码登录

    生成秘钥 将秘钥拷贝到server 重新登录即可注意点:如果你有多个账号的秘钥,应该自己新建一个文件目录来存放秘钥...

  • phpweb前台getshell

    影响范围 测试环境: 秘钥加密方式 漏洞检测方法 1、获取秘钥 获取的秘钥:k=01a5b56136714988a...

  • 腾讯云Linux服务器实现秘钥+密码双层验证

    先配置SSH秘钥登录 然后下载秘钥到本地。 然后秘钥登录命令 如果遇到以下提示:WARNING: UNPROTEC...

  • app调起支付宝支付

    1. 用公司的账户申请支付宝账户 2.下载支付宝秘钥生成工具,生成公钥,秘钥(保存好公钥秘钥文件),编写app说明...

  • aws 实例登录

    创建秘钥创建完秘钥时会给你返回一个keyMaterial: 生成秘钥文件注意就是这个信息,将keyMaterial...

网友评论

      本文标题:秘钥文件格式

      本文链接:https://www.haomeiwen.com/subject/zwjozltx.html