0
我試圖在基於Spring雲的微服務應用程序中使用Consul。 但是,當我在tomcat服務器中啓用HTTPS時,consul無法檢查服務的健康狀況(因爲他們嘗試使用http檢查健康狀況)。我得到這個錯誤:微服務:當啓用https時,領事無法檢查服務的健康狀況
ani got this error: gent: http request failed 'xxxxxxxxxxxx.dsk.eur.msd.world.xxxxxx:1235/health'
使用此配置,Consul使用https檢查健康狀況。但現在證書不被識別xxxx.eur.msd.xxx.xxxxxxx:1234/health':獲取https://xxxxxxxx.xxxx:1234/health:x509:未知權威機構簽署的證書 –
我認爲現在是領事問題。 – spencergibb
這可能與Java信任庫中缺少的CA條目更相關。信任存儲是Java存儲CA信息的「文件」。以下鏈接指向Oracle https://docs.oracle.com/cd/E19830-01/819-4712/ablqw/index.html的手冊部分和SO文章,它解釋了信任和密鑰庫之間的區別: http://stackoverflow.com/questions/17935619/what-is-difference-between-cacerts-and-keystore –