我在Apache 2.4.12上,所以SSLCertificateChainFile現在已經過時,並且任何中間證書都應該包含在服務器證書文件中。但我無法弄清楚如何執行此操作 - 除之外的任何證書組合只有指定文件內的站點證書導致無效的密鑰錯誤。如何在我使用SSLCertificateFile指定的文件中正確包含中間證書?SSLCertificateChainFile已過時
回答
對於Apache 2.4.8,SSLCertificateChainFile
已被廢棄。然而,它只是被棄用,並沒有被刪除,所以你可能會繼續使用舊的風格。但是,對於Apache版本> 2.4.8,SSLCertificateChainFile
將不起作用。
SSLCertificateChainFile已被棄用
SSLCertificateChainFile變得過時與2.4.8版本,當 了SSLCertificateFile擴展到還從服務器證書文件加載中間CA證書
源:https://httpd.apache.org/docs/2.4/mod/mod_ssl.html#SSLCertificateChainFile
舊樣式(有效在Apache < = 2.4.8)
#SSL Directives
SSLEngine on
SSLCertificateFile /etc/ssl/certs/<mydomain.com>.crt
SSLCertificateKeyFile /etc/ssl/private/<mydomain.com>.key
SSLCertificateChainFile /etc/ssl/certs/<full-chain-bundle>.crt
源:How to Install an SSL Certificate on Apache
新型
#SSL Directives
SSLEngine on
SSLCertificateFile /etc/ssl/certs/<full-chain-bundle>.crt
SSLCertificateKeyFile /etc/ssl/private/<mydomain.com>.key
(在Apache> = 2.4.8有效)
來源:https://codesport.io/lamp-stack-advanced/lets-encrypt-tutorial/#vhost-config
並沒有爲我工作。我除去
我覺得是什麼讓這個答案有點令人困惑的是,'<全鏈束> .crt'同時出現在新老配置。如果我沒有記錯,在舊的配置只有* CA鏈*似乎由'SSLCertificateChainFile'打電話到文件中,而在新配置CA鏈應該附加到服務器證書,成*滿鏈*,由'SSLCertificateFile'調用。我試圖在我的回答中澄清。 –
從Apache 2.4模塊mod_ssl
文檔摘自:
該文件還可以包括中間CA證書,分類從葉根。這在版本2.4.8和更高版本中受支持,並且已廢棄
SSLCertificateChainFile
。
這意味着SSLCertificateFile
指令現在(2.4.8之後)接受具有完整證書鏈(從葉到根)的文件。如果您有domain.crt
的服務器證書和domain-ca.crt
中的CA鏈文件,則需要將文件從葉子連接到根,即啓動您的服務器證書,如
cat domain.crt domain-ca.crt > bundle.crt
,並使用該文件的網站的conf
文件中:(例如,使用Ubuntu的默認路徑,這些文件將被存儲在/etc/apache2/ssl/
)
SSLCertificateFile /path/to/bundle.crt
- 1. SSLCACertificateFile和SSLCertificateChainFile之間的區別
- 2. MultipartEntity已過時
- 3. 已過時createEvenSource
- 4. aspxFileUpload.FileBytes已過時?
- 5. Windows.Phone.Media.Capture.PhotoCaptureDevice已過時...?
- 6. StringBuffer已過時?
- 7. Gtk.Style.Font已過時?
- 8. 'System.Net.WebClient.AllowReadStreamBuffering' 已過時 '
- 9. sizeWithFont:lineBreakMode已過時
- 10. DesiredCapabilities已過時
- 11. 'System.Reactive.Concurrency.Scheduler.NewThread'已過時
- 12. WatchViewStub已過時
- 13. 「paymentWithProductIdentifier」已過時
- 14. 「System.Configuration.ConfigurationSettings.AppSettings」已過時
- 15. OpenTK.Graphics.OpenGL.GL已過時?
- 16. getAllNetworkInfo()已過時
- 17. cmake add_custom_command已過時
- 18. OpenGraphActionDialogBuilder已過時
- 19. 搜索已過時?
- 20. MSMQ已過時嗎?
- 21. 超時已過期
- 22. Application.LoadLevel(「string」)已過時
- 23. iPhone stringWithCString已過時
- 24. Microsoft.VisualBasic.Compatibility.VB6.GroupBoxArray'已過時
- 25. Parse.com UIRemoteNotificationType已過時
- 26. 超時已過期。
- 27. 「的setText」已過時
- 28. DatabaseFactory類已過時?
- 29. RSpec的已過時
- 30. iOS6 viewDidUnload已過時
[關於Apache SSLCertificateChainFile棄用警告2.4.8+(http://serverfault.com/q/588986/217116) – sebix