无法生成一个CA根证书的包(无法创build符号链接)

我正在尝试生成一个CA根证书的捆绑。 类似于Facebook的PHP SDK( https://github.com/facebook/facebook-php-sdk/blob/master/src/fb_ca_chain_bundle.crt )。

我试图按照这里的例子: http : //www.linuxfromscratch.org/blfs/view/svn/postlfs/cacerts.html

第一个命令似乎工作。

第一个命令:

certhost='http://mxr.mozilla.org' && certdir='/mozilla/source/security/nss/lib/ckfw/builtins' && url="$certhost$certdir/certdata.txt?raw=1" && wget --output-document certdata.txt $url && unset certhost certdir url && make-ca.sh && remove-expired-certs.sh certs 

但是第二个:

 SSLDIR=/etc/ssl && install -d ${SSLDIR}/certs && cp -v certs/*.pem ${SSLDIR}/certs && c_rehash && install BLFS-ca-bundle*.crt ${SSLDIR}/ca-bundle.crt && ln -sv ../ca-bundle.crt ${SSLDIR}/certs/ca-certificates.crt && unset SSLDIR 

最后我得到了这个错误:

 WARNING: Skipping duplicate certificate Verisign_Class_1_Public_Primary_Certification_Authority.pem WARNING: Skipping duplicate certificate Verisign_Class_1_Public_Primary_Certification_Authority.pem ln: failed to create symbolic link `/etc/ssl/certs/ca-certificates.crt': File exists 

我有很多警告……问题是,我不确定在公众场合分享这些信息是否是一个好主意,而且他们也是如此之多。

我对这一切都是新的。 那么我做错了什么呢,还有更简单的方法吗?

我在Ubuntu上。 使用OpenSSL 1.0.1c 2012年5月10日。

  • 经销商ID:Ubuntu
  • 描述:Ubuntu 12.10
  • 版本:12.10
  • 代号:量子

我的SSL CA提供商是Godaddy。