GNUTLS错误”Base64 Decoding Error”

服务器上面的apache添加了一个gnutls的证书,启动报错:

GnuTLS: Failed to Import Private Key ‘xxx.private.key’: (-207) Base64 unexpected header error.

查找问题原因:

Turns out that what it actually means is not “Base64 decoding error”. What it actually means is “You didn’t remove the pass phrase from the key”.

To do that:

$ cp foo.key foo.key.orig
$ openssl rsa -in foo.key.orig --out foo.key

发表评论


注意 - 你可以用以下 HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>