【发布时间】:2012-04-01 23:25:26
【问题描述】:
我用过这段代码
# 生成 RSA 密钥和证书
openssl req -x509 -nodes -days 365 -newkey rsa:1024 -sha1 -subj \
'/C=US/ST=CA/L=Mountain View/CN=www.example.com' -keyout \
myrsakey.pem -out /tmp/myrsacert.pem
从这里: http://code.google.com/apis/gdata/docs/auth/authsub.html#Registered
Google 从他们自己的 ManageDomains 网站链接到此。我已经使用了代码,并将 pem 文件上传到了 Google。当我测试它时,它给了我这个错误:
语法错误:缺少 PEM 前缀
谁能指出我正确的方向,我已经浪费了几个小时。 谢谢!
【问题讨论】: