关山难越,谁悲失路之人;萍水相逢,尽是他乡之客。
百度360必应搜狗淘宝本站头条
当前位置:网站首页 > 编程教程 > 技术文章 > 正文

跟老韩学Ubuntu Server 2204-openssl-rsa帮助手册

guanshanw 2023-09-16 10:36 19 浏览 0 评论

加油,加油,加油!

老韩Linux SRE

hanyw@hanyw:~$ man openssl-rsa |grep -Ev "^#34;
OPENSSL-RSA(1SSL)                                                                OpenSSL                                                               OPENSSL-RSA(1SSL)
NAME
       openssl-rsa - RSA key processing command
SYNOPSIS
       openssl rsa [-help] [-inform DER|PEM|P12|ENGINE] [-outform DER|PEM] [-in filename|uri] [-passin arg] [-out filename] [-passout arg] [-aes128] [-aes192] [-aes256]
       [-aria128] [-aria192] [-aria256] [-camellia128] [-camellia192] [-camellia256] [-des] [-des3] [-idea] [-text] [-noout] [-modulus] [-traditional] [-check] [-pubin]
       [-pubout] [-RSAPublicKey_in] [-RSAPublicKey_out] [-pvk-strong] [-pvk-weak] [-pvk-none] [-engine id] [-provider name] [-provider-path path] [-propquery propq]
DESCRIPTION
       This command processes RSA keys. They can be converted between various forms and their components printed out.
OPTIONS
       -help
           Print out a usage message.
       -inform DER|PEM|P12|ENGINE
           The key input format; unspecified by default.  See openssl-format-options(1) for details.
       -outform DER|PEM
           The key output format; the default is PEM.  See openssl-format-options(1) for details.
       -traditional
           When writing a private key, use the traditional PKCS#1 format instead of the PKCS#8 format.
       -in filename|uri
           This specifies the input to read a key from or standard input if this option is not specified. If the key is encrypted a pass phrase will be prompted for.
       -passin arg, -passout arg
           The password source for the input and output file.  For more information about the format of arg see openssl-passphrase-options(1).
       -out filename
           This specifies the output filename to write a key to or standard output if this option is not specified. If any encryption options are set then a pass phrase
           will be prompted for. The output filename should not be the same as the input filename.
       -aes128, -aes192, -aes256, -aria128, -aria192, -aria256, -camellia128, -camellia192, -camellia256, -des, -des3, -idea
           These options encrypt the private key with the specified cipher before outputting it. A pass phrase is prompted for.  If none of these options is specified
           the key is written in plain text. This means that this command can be used to remove the pass phrase from a key by not giving any encryption option is given,
           or to add or change the pass phrase by setting them.  These options can only be used with PEM format output files.
       -text
           Prints out the various public or private key components in plain text in addition to the encoded version.
       -noout
           This option prevents output of the encoded version of the key.
       -modulus
           This option prints out the value of the modulus of the key.
       -check
           This option checks the consistency of an RSA private key.
       -pubin
           By default a private key is read from the input file: with this option a public key is read instead.
       -pubout
           By default a private key is output: with this option a public key will be output instead. This option is automatically set if the input is a public key.
       -RSAPublicKey_in, -RSAPublicKey_out
           Like -pubin and -pubout except RSAPublicKey format is used instead.
       -pvk-strong
           Enable 'Strong' PVK encoding level (default).
       -pvk-weak
           Enable 'Weak' PVK encoding level.
       -pvk-none
           Don't enforce PVK encoding.
       -engine id
           See "Engine Options" in openssl(1).  This option is deprecated.
       -provider name
       -provider-path path
       -propquery propq
           See "Provider Options" in openssl(1), provider(7), and property(7).
NOTES
       The openssl-pkey(1) command is capable of performing all the operations this command can, as well as supporting other public key types.
EXAMPLES
       The documentation for the openssl-pkey(1) command contains examples equivalent to the ones listed here.
       To remove the pass phrase on an RSA private key:
        openssl rsa -in key.pem -out keyout.pem
       To encrypt a private key using triple DES:
        openssl rsa -in key.pem -des3 -out keyout.pem
       To convert a private key from PEM to DER format:
        openssl rsa -in key.pem -outform DER -out keyout.der
       To print out the components of a private key to standard output:
        openssl rsa -in key.pem -text -noout
       To just output the public part of a private key:
        openssl rsa -in key.pem -pubout -out pubkey.pem
       Output the public part of a private key in RSAPublicKey format:
        openssl rsa -in key.pem -RSAPublicKey_out -out pubkey.pem
BUGS
       There should be an option that automatically handles .key files, without having to manually edit them.
SEE ALSO
       openssl(1), openssl-pkey(1), openssl-pkcs8(1), openssl-dsa(1), openssl-genrsa(1), openssl-gendsa(1)
HISTORY
       The -engine option was deprecated in OpenSSL 3.0.
COPYRIGHT
       Copyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved.
       Licensed under the Apache License 2.0 (the "License").  You may not use this file except in compliance with the License.  You can obtain a copy in the file
       LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>.
3.0.2                                                                          2022-07-04                                                              OPENSSL-RSA(1SSL)

相关推荐

七条简单命令让您玩转Git
七条简单命令让您玩转Git

凭借着出色的协作能力、快速部署效果与代码构建辅助作用,Git已经得到越来越多企业用户的青睐。除了用于开发商业及消费级应用之外,众多科学及政府机构也开始尝试使用这...

2023-10-07 12:14 guanshanw

基本完整的关于Git分支branch的操作
基本完整的关于Git分支branch的操作

Git使用背景项目中要用到dev或者其他分支开发完代码,需要将该分支合并到master的需求操作步骤下面以dev名称为lex为分支名为例来操作一遍客户端操作:...

2023-10-07 12:14 guanshanw

Git 进阶(合并与变基)
Git 进阶(合并与变基)

在Git中整合来自不同分支的修改主要有两种方法:合并(merge)以及变基(rebase)合并(merge)merge流程图merge的原理是找到这两个分...

2023-10-07 12:13 guanshanw

Git学习笔记 003 Git进阶功能 part5 合并(第一部分)

合并(merge)是很常用的操作。尤其是一个庞大的很多人参与开发的企业级应用。一般会设定一个主分支,和多个副分支。在副分支开发完成后,合并到主分支中。始终保持主分支是一个完整的,稳定的最新状态的分支。...

非标题党,三张图帮你理解git merge和git rebase的区别
非标题党,三张图帮你理解git merge和git rebase的区别

初始场景:基于正常的开发分支修改几个小bug,然后在合并到开发分支上。gitmergegitcheckoutfeaturegitmergeho...

2023-10-07 12:13 guanshanw

git 初次使用(01)
git 初次使用(01)

先从github上克隆代码下来:使用vscode克隆代码如下图,填写上github仓库地址:vscode有时候克隆代码速度比较慢,可以用命令行方式克隆gitc...

2023-10-07 12:12 guanshanw

Git 远程操作

4.Git远程操作命令说明gitremote远程版本库操作gitfetch从远程获取版本库gitpull下载远程代码并合并gitpush上传远程代码并合并4.1远程版本库操作gitre...

Git常用命令-总结
Git常用命令-总结

创建git用户$gitconfig--globaluser.name"YourName"$gitconfig--globaluser.em...

2023-10-07 12:12 guanshanw

git中删除从别人clone下来项目的git信息,并修改为自己的分支

如果你从别人的Git存储库中克隆了一个项目,并想要删除与该存储库相关的Git信息,并将其修改为你自己的分支,则可以执行以下步骤:使用gitclone命令克隆存储库:gitclone<u...

git系列-回滚和放弃本地修改

回滚历史提交就是reset的功能。这种情况是已经提交远程仓库,需要回滚到之前的提交。gitreset--hardcommitId//注:强制提交后,当前版本后面的提交版本将会删掉!gi...

GIT使用小技巧大全
GIT使用小技巧大全

在大型软件工程的开发过程中,版本控制是无法绕过去的;目前来说,最火的版本控制软件就是GIT了。早两年SVN比较火,不过被大神linus喷了几次后,就日落西山了,...

2023-10-07 12:11 guanshanw

git相关命令-上
git相关命令-上

这些命令都是看了文档后,个人觉得比较有用的一些,展示给大家。回到远程仓库的状态抛弃本地所有的修改,回到远程仓库的状态。gitfetch--all&...

2023-10-07 12:10 guanshanw

Git命令行接口:掌握Git的必备技能
Git命令行接口:掌握Git的必备技能

Git是一款强大的分布式版本控制工具,它支持命令行界面操作。熟练掌握Git命令行接口,是开发者使用Git的必备技能之一。在这篇文章中,我们将介绍Git命令行接口...

2023-10-07 12:10 guanshanw

Git命令详解
Git命令详解

相信各位小伙伴们应该都对git有一些了解,毕竟作为代码管理的神器,就算不是IT行业的小伙伴肯定也或多或少的听说过一些。今天就来和小伙伴们分享一下自己总结的常用命...

2023-10-07 12:10 guanshanw

工作7年收集到的git命令
工作7年收集到的git命令

概念git中的术语解释:仓库也叫版本库(repository)stage:暂存区,add后会存到暂存区,commit后提交到版本库git安装linux...

2023-10-07 12:10 guanshanw

取消回复欢迎 发表评论: