使用cf CLI工作流配置Bluemix Liberty应用程序以将证书添加到Liberty信任库的步骤? [英] Steps to configure Bluemix Liberty application to add a certificate to the Liberty trust store using a cf CLI workflow?
问题描述
我正在使用cf
CLI将Spring Boot应用程序部署到Bluemix.我收到一个错误"RSA premaster秘密错误",可以在这里看到:
I'm using the cf
CLI to deploy a spring boot application to Bluemix. I'm getting an error 'RSA premaster secret error' as can be seen here: RSA premaster secret error when using webHDFS from BigInsights on cloud
我正在这样部署我的应用程序:
I'm deploying my application like this:
# Create a Liberty application in Blumemix.
# Set APPNAME (below) to the name of the application.
APPNAME=<<theappname>>
cf login -u cf_username -p cf_password
cf push $APPNAME -p build/libs/myapp.jar
似乎我需要将证书添加到信任库-这样做还有哪些其他步骤?据我所知,我需要重新包装自由服务器才能做到这一点.
It seems that I need to add a certificate to the truststore - what are the additional steps for doing this? From what I can tell I need to repackage the liberty server to do this.
上面的代码片段囊括了我对自由的全部了解,请在提供答案时加以考虑.例如,我已经看到一些答案,提示我需要编辑server.xml
,但是我没有此文件,所以大概我需要从头开始创建它,或者以某种方式生成它?
The above code snippet encapsulates my entire knowledge about liberty, please take that into account when providing an answer. For instance, I have seen some answers suggesting that I need to edit server.xml
, but I don't have this file, so presumably I need to create it from scratch, or generate it some how?
我也遇到过类似的问题,但是我专门要求添加证书的工作流程是在使用cf CLI工具时.
I have seen similar questions, but the workflow I'm specifically asking about to add a certificate is when I'm using the cf CLI tools.
推荐答案
完成此任务无需做任何事情,它需要几个步骤:
There's no one thing to do to accomplish this task, it will require several steps:
1)确保自由& Spring应用程序在本地工作.以下数据将指导您确保Liberty&弹簧设置正确:
1) Ensure Liberty & Spring app works locally. The data below will guide you through ensuring Liberty & Spring are setup correctly:
如何在Spring Boot应用程序中使用Websphere自由
http://www.adeveloperdiary.com/java/spring-boot/deploy-spring-boot-application-ibm-liberty-8-5/
2)在Liberty中为您的应用程序配置安全性:
2) Configure security for your app in Liberty:
3)从CF命令行将打包的服务器部署到Bluemix:
3) Deploy a packaged server to Bluemix from the CF command line:
https://console.ng.bluemix.net/docs/runtimes/liberty/optionsForPushing.html
这篇关于使用cf CLI工作流配置Bluemix Liberty应用程序以将证书添加到Liberty信任库的步骤?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!