(备忘)UBUNTU源码下载修改再打包 & openssl私钥管理

需要 :apt-get install dpkg-dev

 sudo apt-get source  xxx    命令来获取源码包,它会将源码包下载到用户当前目录

apt-get build-dep命令可以主动获取并安装所有依赖关系的相关软件包

没有 dpkg-dev 解压源码 dpkg-source -x foo_version-revision.dsc

sudo dpkg-buildpackage 编译打包

忽略改动编译打包dpkg-buildpackage -rfakeroot -b

这样修改编译出来的包覆盖安装后不会出现no version information available

SSH也不会无法文件传输。。。

这个 问题折腾死我了。。。。

&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&


rsa [options] <infile >outfile
where options are
 -inform arg     input format - one of DER NET PEM (输入的密钥编码格式,可以是DER、NET、PEM中的一个,默认为PEM)
 -outform arg    output format - one of DER NET PEM (输出的密钥编码格式)
 -in arg         input file (输入的密钥文件名称)
 -sgckey         Use IIS SGC key format (使用SGC格式,一般很少用到)
 -passin arg     input file pass phrase source (输入密钥文件时提供的密钥文件口令)
 -out arg        output file (输出的密钥文件名)
 -passout arg    output file pass phrase source (输出密钥文件时的口令)
 -des            encrypt PEM output with cbc des (使用des算法对密钥进行加密)
 -des3           encrypt PEM output with ede cbc des using 168 bit key (使用des3算法对密钥进行加密)
 -aes128, -aes192, -aes256
                 encrypt PEM output with cbc aes  (使用aes算法对密钥进行加密)
 -text           print the key in text (明文输出密钥参数)
 -noout          don't print key out (不输出密钥到文件)
 -modulus        print the RSA key modulus (输出RSA密钥模值)
 -check          verify key consistency
 -pubin          expect a public key in input file (默认输入的是密钥对的私钥,使用pubin输入的是密钥的公钥)
 -pubout         output a public key (输出公钥到文件)
 -engine e       use engine e, possibly a hardware device. (使用第三方设备)


openssl genrsa -aes128 -out rsakey.pem -passout pass:111111 2048   

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值