【发布时间】:2020-10-14 16:51:28
【问题描述】:
我想要在 keycloak 中进行证书身份验证的身份验证流程,并遵循此 docs from keycloak。
我使用这些命令生成了密钥库和信任库
keytool.exe -genkey -keyalg RSA -alias localhost -keystore keystore.jks -storepass password123 -validity 360
keytool.exe -export -alias localhost -file localhost.cer -keystore keystore.jks
keytool.exe -import -v -trustcacerts -alias localhost -file localhost.cer -keystore truststore.jks
并且还在 xml 文件中进行了更改,现在在 troubleshooting part 我不知道如何生成 client_cert.crt 和 client_cert.key。还提到它们需要采用 .pem 格式。
有人可以帮我解决这个问题吗?
【问题讨论】: