-
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?
秘鑰文件格式
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
- 文/潘曉璐 我一進(jìn)店門萤衰,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人猜旬,你說我怎么就攤上這事脆栋【肼簦” “怎么了?”我有些...
- 文/不壞的土叔 我叫張陵椿争,是天一觀的道長怕膛。 經(jīng)常有香客問我,道長丘薛,這世上最難降的妖魔是什么嘉竟? 我笑而不...
- 正文 為了忘掉前任邦危,我火速辦了婚禮洋侨,結(jié)果婚禮上,老公的妹妹穿的比我還像新娘倦蚪。我一直安慰自己希坚,他們只是感情好,可當(dāng)我...
- 文/花漫 我一把揭開白布陵且。 她就那樣靜靜地躺著裁僧,像睡著了一般。 火紅的嫁衣襯著肌膚如雪慕购。 梳的紋絲不亂的頭發(fā)上聊疲,一...
- 文/蒼蘭香墨 我猛地睜開眼涉馁,長吁一口氣:“原來是場噩夢啊……” “哼门岔!你這毒婦竟也來了?” 一聲冷哼從身側(cè)響起烤送,我...
- 序言:老撾萬榮一對(duì)情侶失蹤寒随,失蹤者是張志新(化名)和其女友劉穎,沒想到半個(gè)月后帮坚,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體妻往,經(jīng)...
- 正文 獨(dú)居荒郊野嶺守林人離奇死亡,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
- 正文 我和宋清朗相戀三年叶沛,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了蒲讯。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
- 正文 年R本政府宣布悦昵,位于F島的核電站,受9級(jí)特大地震影響晌畅,放射性物質(zhì)發(fā)生泄漏但指。R本人自食惡果不足惜,卻給世界環(huán)境...
- 文/蒙蒙 一抗楔、第九天 我趴在偏房一處隱蔽的房頂上張望棋凳。 院中可真熱鬧,春花似錦连躏、人聲如沸剩岳。這莊子的主人今日做“春日...
- 文/蒼蘭香墨 我抬頭看了看天上的太陽拍棕。三九已至,卻和暖如春勺良,著一層夾襖步出監(jiān)牢的瞬間绰播,已是汗流浹背。 一陣腳步聲響...
- 正文 我出身青樓尾组,卻偏偏與公主長得像忙芒,于是被迫代替她去往敵國和親。 傳聞我的和親對(duì)象是個(gè)殘疾皇子讳侨,可洞房花燭夜當(dāng)晚...
推薦閱讀更多精彩內(nèi)容
- 16宿命:用概率思維提高你的勝算 以前的我是風(fēng)險(xiǎn)厭惡者呵萨,不喜歡去冒險(xiǎn),但是人生放棄了冒險(xiǎn)跨跨,也就放棄了無數(shù)的可能潮峦。 ...
- 公元:2019年11月28日19時(shí)42分農(nóng)歷:二零一九年 十一月 初三日 戌時(shí)干支:己亥乙亥己巳甲戌當(dāng)月節(jié)氣:立冬...
- 今天上午陪老媽看病,下午健身房跑步勇婴,晚上想想今天還沒有斷舍離忱嘹,馬上做,衣架和旁邊的的布衣架耕渴,一看亂亂拘悦,又想想自己是...