Saya ingin mengaktifkan penjepret OCSP di server nginx saya. saya menggunakan
- versi nginx: nginx / 1.6.2
- debian
- Mari Enkripsi sertifikat
Saya benar-benar tidak berpengalaman dalam hal ini, jadi itu mungkin masalah sepele.
Di sini konfigurasi keamanan nginx saya
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:10m;
ssl_dhparam /etc/ssl/private/dhparams_4096.pem;
Di sini konfigurasi keamanan situs / Server saya:
add_header Strict-Transport-Security "max-age=31536000; includeSubdomains; preload";
# All files have been generated by Let's encrypt
ssl_certificate /etc/letsencrypt/live/myexample.org/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/myexample.org/privkey.pem;
# Everything below this line was added to enable OCSP stapling
# What is that (generated file) and is that required at all?
ssl_trusted_certificate /etc/letsencrypt/live/myexample.org/chain.pem;
ssl_stapling on;
ssl_stapling_verify on;
resolver 8.8.8.8 8.8.4.4 valid=300s;
resolver_timeout 5s;
Saya membaca bahwa ini akan cukup untuk mengaktifkan penjepret OCSP.
Tetapi jika saya mengujinya menggunakan
openssl s_client -connect myexample.org:443 -tls1 -tlsextdebug -status
Saya akan mendapatkan respons berikut:
TLS server extension "renegotiation info" (id=65281), len=1
0001 - <SPACES/NULS>
TLS server extension "EC point formats" (id=11), len=4
0000 - 03 00 01 02 ....
TLS server extension "session ticket" (id=35), len=0
TLS server extension "heartbeat" (id=15), len=1
0000 - 01 .
OCSP response: no response sent
depth=1 C = US, O = Let's Encrypt, CN = Let's Encrypt Authority X1
verify error:num=20:unable to get local issuer certificate
verify return:0
---
Certificate chain
0 s:/CN=myexample.org
i:/C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X1
1 s:/C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X1
i:/O=Digital Signature Trust Co./CN=DST Root CA X3
---
[...]
Terutama
OCSP response: no response sent
Apa yang saya lakukan salah?
Hirarki sertifikat:
- DST Root CA X3
- Mari Enkripsi Otoritas X1
- myexample.org
- Mari Enkripsi Otoritas X1
EDIT:
OCSP: URI: http://ocsp.int-x1.letsencrypt.org/
CA-Issuer: URI: http://cert.int-x1.letsencrypt.org/
fullchain.pem
dan chain.pem
file - apakah mereka sama? Bukankah seharusnya ssl_trusted_certificate
arahan juga menggunakan fullchain.pem
file?