P
P
Pavel2016-03-02 11:29:06
Nginx
Pavel, 2016-03-02 11:29:06

WoSign certificates - why are there no .key files?

Good time.
Got archives from WoSign and none of them have .key files, only .crt files. Nginx accordingly swears at such a config without .key:

nginx: [emerg] no "ssl_certificate_key" is defined for the "ssl" directive in /etc/nginx/conf.d/ssl.conf:23
nginx: configuration file /etc/nginx/nginx.conf test failed

Is this normal for WoSign?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Gregory, 2016-03-02
@xJast

This is normal for everyone.
.crt files - signed public certificate + public keys of the certification authority.
The .key file is a private key that you shouldn't have sent anywhere. It should be on your server, in the same place where you generated the certificate request.
And accordingly, in the nginx config, you must specify the path to this file in the ssl_certificate_key directive.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question