用https从本地击中URL所需的最低配置(休息到肥皂)

发布于 2025-02-07 02:35:05 字数 700 浏览 2 评论 0原文

因此,我最近经历了几篇有关在本地计算机上启用spr启动的SSL的文章

,例如 如何设置弹簧启动以运行https / http端口

假设我的春季启动应用程序yml yml已定义(也有几个其他定义

someService(SOAP Based):

  username: someUserName

  uri: https://qa01-some-service-war.appcloud-np.barclays.intranet/someservice/v1/someservice.wsdl

  password:

)问题是,如果我想将其他所有服务称为正确定义!

, 我需要将最低限度到目前为止的例外(我认为如果正确通过密码字段)

org.springframework.ws.soap.client.client.soapfaultclientException:无法认证或确认安全令牌授权;嵌套异常是org.apache.wss4j.common.common.wssecurityexception:无法对安全令牌进行认证或授权>

So I have been recently going through few articles on enabling SSL in spring boot on local machine

For e.g. How set up Spring Boot to run HTTPS / HTTP ports

Let's say my Spring boot application YML has following defined (Few other definitions too)

someService(SOAP Based):

  username: someUserName

  uri: https://qa01-some-service-war.appcloud-np.barclays.intranet/someservice/v1/someservice.wsdl

  password:

My Question is what is the bare minimum I require if at runtime I want to call this "some-service" , assuming everything else is properly defined!

Just to add up more, I am facing this exception as of now (Which wouldn't I think if I pass the password field correctly)

org.springframework.ws.soap.client.SoapFaultClientException: The security token could not be authenticated or authorized; nested exception is org.apache.wss4j.common.ext.WSSecurityException: The security token could not be authenticated or authorized

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

蹲墙角沉默 2025-02-14 02:35:05

希望这是有帮助的,这些是必须遵循的基本步骤来为Springboot设置SSL。

https://www.thomasvitale.com/htomasvitale.com/https-spring-boot-boot-boot-boot-boot-boot-boot-boot-boot-boot-boot-boot-boot-boot-boot-boot- -certificate/

添加这些配置

server:
  ssl:
    key-store: classpath:keystore.p12
    key-store-password: password
    key-store-type: pkcs12
    key-alias: springboot
    key-password: password
  port: 8443

Hope this one helps, These are basic steps one must follow to setup ssl for springboot.

https://www.thomasvitale.com/https-spring-boot-ssl-certificate/

Add these configurations

server:
  ssl:
    key-store: classpath:keystore.p12
    key-store-password: password
    key-store-type: pkcs12
    key-alias: springboot
    key-password: password
  port: 8443
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文