tokers commented on a change in pull request #2179:
URL: https://github.com/apache/apisix/pull/2179#discussion_r489240353
##########
File path: apisix/http/router/radixtree_sni.lua
##########
@@ -95,14 +109,22 @@ local function create_router(ssl_items)
end
-- decrypt private key
- if aes_128_cbc_with_iv ~= nil and
- not core.string.has_prefix(ssl.value.key, "---") then
- local decrypted =
aes_128_cbc_with_iv:decrypt(ngx_decode_base64(ssl.value.key))
- if decrypted == nil then
- core.log.error("decrypt ssl key failed. key[",
ssl.value.key, "] ")
- else
+ if aes_128_cbc_with_iv ~= nil then
+ local decrypted = decrypt_priv_pkey(aes_128_cbc_with_iv,
Review comment:
sure.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]