CurlURIHTTP,HTTPS,FTP,FTPS,IMAPHTTP GET/PUT, FTP UploadingSSL7.29. http://curl.haxx.se CurllibcurlURL Curl GITHUPGITHUPHTTPSHTTPSSLGITHUP APIOATHCURLHTTPS1HTTPSHTTPSSL V2/V3TLSKEYKEYKEYKEYKEYOpensslDES/AESKEYHTTPHTTPHTTPOpensslRSAdvkx47@FC7R5S1 /home/cipan
# openssl genrsa -out privatekey 1024
Generating RSA private key, 1024 bit long modulus
……..++++++
….++++++
e is 65537 (0x10001) dvkx47@FC7R5S1 /home/cipan
# cat privatekey
—–BEGIN RSA PRIVATE KEY—–
MIICXQIBAAKBgQD3wRgIhsejsP5nPE4T0Ux4Tf0B9SJYbl61v5RmQsXPR03PZwLJ
yomY65o079Yk7ePfXV674LUU4/jPMwJ9QpQR8i62oR8MMBUjbhLTQU5EusHXsxfY
Wr2xQwL3HQwrDW5gm5hqPxCX1hwPTlePnJ4wL6CFHa+30W02bRXcGqSpcQIDAQAB
AoGBAIwhf0JzWT/QwFQL2+2BmEsDcXNF/2MdKhyKe5lLcy7GGdCRZxZTpHgF6na+
oNTKaPTRjt+dPU7Pks8+/s1yduSCvOkViDfGvZ/lKXnj7jVA/TPFD6nsjh2F30mY
ZyZgag2pV9YnAvh2SIvcJXxvdUU3FMcPiZZqAhD4mE7pEQFBAkEA/YCdhcyu94fx
3TqfDpp2tJ8fh/py+fqPWksvhVbdq21Sqegpj4yqnZkTQVfWNAp+OgbPjK6PArKA
WbxOEfxHlQJBAPox+wixjO+x6qIn6IYS2plN3UDG05mPDACqMR80BrGWqBhhcTsD
a1Oh55IA6HmN8cxQp3m9aN9bMPzv66w5s20CQBjjIZPbLmo6vHH9qVPjsje1T4Eo
A1WrVZuFuhqbFpQX3X+0vS/MnYtvVcaaevsM9Kt5s7KaCIw5PgSRShDV9akCQEJl
YSk9dRlnLc06qgpqlnh5oW6/VQg7XgQPJloRhHU8df+CXHo8vg7Dt5DXjNo1QSXn
gYpdKaecm7OEOBbMeUECQQCV+UNy1TebuOJQIEKLTj7XXhcaH60fcD10OpB9zngc
EsjY+24AmZCR5sb1BRD1vh0dcgFSgaOfgUwMRtkEF/Ml
—–END RSA PRIVATE KEY—– dvkx47@FC7R5S1 /home/cipan
# openssl rsa -in privatekey -pubout > pub.key
writing RSA key dvkx47@FC7R5S1 /home/cipan
# cat pub.key
—–BEGIN PUBLIC KEY—–
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD3wRgIhsejsP5nPE4T0Ux4Tf0B
9SJYbl61v5RmQsXPR03PZwLJyomY65o079Yk7ePfXV674LUU4/jPMwJ9QpQR8i62
oR8MMBUjbhLTQU5EusHXsxfYWr2xQwL3HQwrDW5gm5hqPxCX1hwPTlePnJ4wL6CF
Ha+30W02bRXcGqSpcQIDAQAB
—–END PUBLIC KEY—– dvkx47@FC7R5S1 /home/cipan
# openssl rsautl -in plaintext_origin -out ciphertext_rsa -inkey pub.key -pub
in -encrypt dvkx47@FC7R5S1 /home/cipan
# cat ciphertext_rsa
x;?Q9???????UE??Qq?n!???k/????s&?5??????qr*?N’:?K??4?Y?
?DI?’rFC#????????r????:r?8???Y ?’?|??L}|?-#??SM?S`-&5XZy
dvkx47@FC7R5S1 /home/cipan
# openssl rsautl -in ciphertext_rsa -out plaintext_new_rsa -inkey privatekey –
decrypt dvkx4免费云主机域名7@FC7R5S1 /home/cipan
# cat plaintext_new_rsa
I am a plaintext, ——————-
————————————dvkx47@FC7R5S1 /home/cipan
# RSAOpenssldvkx47@FC7R5S1 /home/cipan
# ls
ciphertext crytxt.txt plaintext_new_rsa privatekey
ciphertext_rsa plaintext_new plaintext_origin pub.key dvkx47@FC7R5S1 /home/cipan
# openssl rsautl -in plaintext_origin -out ciphertext.sig -inkey privatekey –
sign dvkx47@FC7R5S1 /home/cipan
# ll
bash: ll: command not found dvkx47@FC7R5S1 /home/cipan
# ls
ciphertext ciphertext_rsa plaintext_new plaintext_origin pub.key
ciphertext.sig crytxt.txt plaintext_new_rsa privatekey dvkx47@FC7R5S1 /home/cipan
# cat ciphertext.sig
vNC:hj?%=???5S???CW?=??o??!????[ ??#X?O$??U4?%1??,?w?A0Y????%???oQ???k??=
%????’?S?
# openssl rsautl -in ciphertext.sig -out plaintext_new_sign -inkey pub.key -p
ubin -verify
# cat plaintext_new_sign
I am a plaintext, ——————-
————————————- dvkx47@FC7R5S1 /home/cipan
#
如果把邮件的发送比喻成一场“通关”的话,那么一家服务商就是关口险隘的“守护者”。我们可以把“邮件”看作是持有“文书”的发送者,那么这个“通关文书”的发放方就是给邮件服务运营商,而邮件从发件方到达收件方,等于是要通过两个关口,两关口中间还有一段路程,那么很有可能…
免责声明:本站发布的图片视频文字,以转载和分享为主,文章观点不代表本站立场,本站不承担相关法律责任;如果涉及侵权请联系邮箱:360163164@qq.com举报,并提供相关证据,经查实将立刻删除涉嫌侵权内容。