Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot issue from a SAN csr file #306

Closed
dynos01 opened this issue Sep 29, 2016 · 12 comments
Closed

Cannot issue from a SAN csr file #306

dynos01 opened this issue Sep 29, 2016 · 12 comments

Comments

@dynos01
Copy link

dynos01 commented Sep 29, 2016

"Cannot read subject from csr"

@Neilpang
Copy link
Member

@dynos01
What command did you use?
Please add --debug or --log

Give me your CSR.

@dynos01
Copy link
Author

dynos01 commented Sep 29, 2016

bash acme.sh --showcsr --csr ecc.csr --debug
[Thu Sep 29 13:44:44 CST 2016] Lets guess script dir.
[Thu Sep 29 13:44:44 CST 2016] _SCRIPT_='acme.sh'
[Thu Sep 29 13:44:44 CST 2016] _script='/usr/local/nginx/ssl/acme.sh'
[Thu Sep 29 13:44:44 CST 2016] _script_home='/usr/local/nginx/ssl'https://github.com/Neilpang/acme.shv2.6.0
[Thu Sep 29 13:44:44 CST 2016] Can not read subject from csr: ecc.csr

and the csr is:

-----BEGIN CERTIFICATE REQUEST-----MIIBiDCCAQ0CAQAwADB2MBAGByqGSM49AgEGBSuBBAAiA2IABJFQfuwdtRyrLBAVY/ATgjjGryRzHs5bdUXKEkCX0rhPxGrk7xseoP+IqMVnFLE2xSnyx+xuNtZWJ/139Un6jY9ITunUghTnkP+e983iPBvs6HHZF6X2+18NaynBCPxQsKCBjTCBigYJKoZIhvcNAQkOMX0wezB5BgNVHREEcjBwggZkeW4uaW2CCnd3dy5keW4uaW2CDXN0YXRpYy5keW4uaW2CC3Rlc3QuZHluLmltggtkeW5vczAxLmNvbYIPd3d3LmR5bm9zMDEuY29tgg1kZW5neWludW8ubmV0ghF3d3cuZGVuZ3lpbnVvLm5ldDAKBggqhkjOPQQDAgNpADBmAjEAipWlfBj24RiIlNanB0d77aCLUydumBibNQxc9+zKyutKT/Rit8xoz1s5ciiYpU9DAjEA7x/fb9c6a/dSYqrf1OPPh9gGUspLtcPTSYDV3Z6pE+FKlFLXsKd97xIOOgG54/Uc
-----END CERTIFICATE REQUEST-----

@dynos01
Copy link
Author

dynos01 commented Sep 29, 2016

Oops the github mobile was ruining my format...
If it doesn't work, try https://static.dyn.im/ecc.csr
Thank you a lot

@Neilpang
Copy link
Member

Thanks, I see your csr now.
It doesn't have a subject field. which tool did you use to generate such csr ?

@dynos01
Copy link
Author

dynos01 commented Sep 29, 2016

Using such a command:
openssl req -new -sha256 -key domain.key -subj "/" -reqexts SAN -config <(cat /etc/ssl/openssl.cnf <(printf "[SAN]\nsubjectAltName=DNS:yoursite.com,DNS:www.yoursite.com")) > domain.csr

@Neilpang
Copy link
Member

OK, I will fix it.

@dynos01
Copy link
Author

dynos01 commented Sep 29, 2016

好的 谢谢作者(才发现原来是天朝人= =

@Neilpang
Copy link
Member

不客气, 之前没考虑到这种空主题的情况.

@Neilpang
Copy link
Member

一个小问题, 你为什么要自己手动生成csr 呢 ?

@dynos01
Copy link
Author

dynos01 commented Sep 29, 2016

因为需要用一个指定的key- -
您的脚本好像没法指定key

@Neilpang
Copy link
Member

要用 ecdsa 类型的key吗.

https://github.com/Neilpang/acme.sh#9-issue-ecc-certificate

acme.sh --issue  ....   -k ec-256

@dynos01
Copy link
Author

dynos01 commented Sep 29, 2016

这是因为软件环境原因不能更换key,只能用现有的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants