博客专栏推荐
-
1177338次
-
122015次
-
56769次
-
29259次
本月博客排行
年度博客排行
-
第1名
青否云后端云 -
第2名
zw7534313 -
第3名
大家都说我很棒 - liyihz2008
- wy_19921005
- hbxflihua
- 腾讯优测1
- e_e
- ning2-eye
- wallimn
- dbagirl
- gengyun12
- luxurioust
- zysnba
- itdatacenter
- alsmile
- robotmen
- xiangjie88
- johnsmith9th
- gaozzsoft
- jywhltj
- fantaxy025025
- zhangdaiscott
- chinahuyong
- 淡看人生
- leslie26
- sichunli_030
- cuityang
- kaizi1992
- jveqi
- mukeliang728
- cpongo1
- hellohank
- zlr
- weiyides
- hanbaohong
- appalese
- jickcai
- zhaoshijie
- lzyfn123
- jackpot1234
- qepwqnp
- ranbuijj
- 解宜然
- lyongq04
- xpenxpen
- ssydxa219
- gdpglc
- java-007
最新文章列表
首先使用命令行生成一个keystore文件:
keytool -genkey -alias tomcat -keyalg rsa -keystore ./jerry.keystore
保存到本地项目文件夹里:
springboot里application.properties文件,维护如下内容:
server.port=5031server.ssl.key-store=jerr ...
一、遇到的问题:
先描述一下问题,原来的系统把架构从spring mvc改成了spring boot,并且配置了支持https访问。我用frame框架集成了两个服务,但是两个服务的域名是不一样的。举例,a服务:a.fk.com,b服务:b.fk.com。当我登录到a服务后通过frame集成的方式去访问b,用http可以访问,然而https就不支持。
二、问题定位:
...
有744人浏览
2019-10-24 20:59
背景
在某些特殊的项目中虽然使用了https,但其证书管理又不是采用常规模式,如服务端用了个自签名的证书。 很多组织的内部项目因为各种原因采 ...
有2003人浏览
2019-08-01 21:23
先前是已经安装了nginx,没有安装ssl模块
所以先给nginx安装ssl模块
1.看下编译安装nginx的时候,都编译安装的哪些模块。
[root@zabbix ~]# /usr/local/nginx/sbin/n ...
有468人浏览
2019-05-09 14:55
首先通过下面的链接下载opensslhttps://slproweb.com/products/win32openssl.html
public static webclient createwebclient() {
sslcontext sslcontext = null;
try {
sslcontext = sslcontextbuilder
.forclient()
.trustmanager(inse ...
有3325人浏览
2018-09-30 11:42
public static resttemplate buildresttemplate() {
resttemplate resttemplate = new resttemplate();
if (ignoressl) {//ignoressl为true时,绕过证书
httpcomponentsclienthttprequestfactory ...
有5268人浏览
2018-09-30 11:30
public static closeablehttpclient gethttpsclient() {
closeablehttpclient httpclient;
if (ignoressl) {//ignoressl为true时,绕过证书
sslcontext sslcontext = null;
try {
...
有3053人浏览
2018-09-30 11:25
springboot2.0之后,启用https协议的方式与1.*时有点儿不同,贴一下代码。
我的代码能够根据配置参数中的condition.http2https,确定是否启用https协议,如果启用https协议时,会将所有http协议的访问,自动转到https协议上。
一、启动程序
package com.wallimn.iteye.sp.asset;
import org. ...
package com.gpcsoft.xjmodule.utils;
import java.io.file;
import java.io.ioexception;
import java.net.urlencoder;
import java.nio.charset.charset;
import java.security.keymanagementexception;
impo ...
有696人浏览
2018-06-20 21:07
« 上一页 1 …