分页: 1 / 1

证书转换问题。

发表于 : 2015-10-09 17:09
lly_630
转换格式 .cer 到 .pem

root@liuly-virtual-machine:/home/liuly/桌面# openssl x509 -inform der -in root.cer -out root.pem
unable to load certificate
140593638086304:error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag:tasn_dec.c:1337:
140593638086304:error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error:tasn_dec.c:388:Type=X509
root@liuly-virtual-machine:/home/liuly/桌面# ls -l
总用量 8
-rwxrwxrwx 1 liuly liuly 1270 9月 24 17:36 root.cer
-rwxrwxrwx 1 liuly liuly 92 9月 25 10:47 无标题文档~
root@liuly-virtual-machine:/home/liuly/桌面#


是什么原因,无法转换?

Re: 证书转换问题。

发表于 : 2015-10-09 17:28
poloshiao
openssl x509 -inform der -in root.cer -out root.pem
1. 確認一下 .cer 對不對
root@liuly-virtual-machine:/home/liuly/桌面#
2. 你使用 root 登入 但是 在 liuly 的家目錄 /home/liuly/桌面 執行
會不會引起權限混亂 請查證
2-1. 新手 在 Ubuntu 不建議使用 root 登入
除非是該程式使用手冊這樣建議
2-2. 新手 在 Ubuntu 建議使用非 root 登入
需要 root 權限時 加 sudo

3. 證書 參閱
https://help.ubuntu.com/lts/serverguide ... urity.html

Re: 证书转换问题。

发表于 : 2015-10-09 17:33
lly_630
.CER 的文件是可以用的。我把他导入到FIREFOX的浏览器中是,可以用的。

OK 多谢,我试下。

Re: 证书转换问题。

发表于 : 2015-10-09 17:37
poloshiao
.CER 的文件是可以用的
在 Linux 一般 副檔名是無所謂的
但是 某些程式 在意 副檔名

https://help.ubuntu.com/lts/serverguide ... urity.html
沒有 .cer 副檔名出現
如果你不是有經驗的老手 建議 參照上面文章副檔名使用