Spring Cloud Config - 抛出私钥无效错误
Spring Cloud Config - throws invalid private key error
原因:属性 'spring.cloud.config.server.git.privateKey' 不是有效的私钥。我已经使用以下命令生成了 SSH 密钥 - ssh-keygen -m PEM -t rsa -b 4096.
我已经用 putty gen、Git bash 等多种方式生成了密钥,但我仍然得到无效的私钥。
configuration. attached the configuration file and error log file
在将“密码”添加到属性文件后,我已经解决了这个问题,如附加消息中突出显示的那样。 “密码”将在生成密钥时生成。
原因:属性 'spring.cloud.config.server.git.privateKey' 不是有效的私钥。我已经使用以下命令生成了 SSH 密钥 - ssh-keygen -m PEM -t rsa -b 4096.
我已经用 putty gen、Git bash 等多种方式生成了密钥,但我仍然得到无效的私钥。
在将“密码”添加到属性文件后,我已经解决了这个问题,如附加消息中突出显示的那样。 “密码”将在生成密钥时生成。