当前位置:网站首页>使用keytool从.jks文件获取SSL certificate
使用keytool从.jks文件获取SSL certificate
2022-06-22 05:03:00 【飞鸿踏雪Ben归来】
在测试环境里,Hive DB搭建在Ambari统一管理的环境里,Knox提供gateway功能。
某日,Knox服务启动失败,查看log报错如下:
2022-06-08 20:40:07,992 INFO knox.gateway (JettySSLService.java:logAndValidateCertificate(112)) - The Gateway SSL certificate is issued to hostname: server.test.com.
2022-06-08 20:40:07,993 INFO knox.gateway (JettySSLService.java:logAndValidateCertificate(115)) - The Gateway SSL certificate is valid between: 6/4/21 8:53 AM and 6/4/22 8:53 AM.
2022-06-08 20:40:07,998 FATAL knox.gateway (GatewayServer.java:main(175)) - Failed to start gateway: org.apache.knox.gateway.services.ServiceLifecycleException: Gateway SSL Certificate is Expired. Server will not start.SSL certificate过期了,这个问题Google一下就找到解决方法了。详情参考这篇IBM technote。
[[email protected] ~]# ll /var/lib/knox/data*/security/keystores/gateway.jks
-rw-r--r-- 1 knox knox 1379 Jun 4 2021 /var/lib/knox/data-3.1.5.0-152/security/keystores/gateway.jks
[[email protected] ~]# mv /var/lib/knox/data*/security/keystores/gateway.jks /tmp/gateway.jks然后重启Knox服务以及Knox里头的LDAP服务就自动生成新的certificate了,Knox成功启动。
但是,当client端要连过来Hive DB的话,需要使用新的SSL certificate。这里可以使用下面的命令来从gateway.jks文件中读取SSL certificate。
keytool -list -rfc -keystore gateway.jks
边栏推荐
- 89---狄拉克 delta 函数
- Chapter 6 infinite series_ Fourier series
- [sdx12] use qcmap_ CLI startup WiFi operation instructions
- JUC - thread interrupt and thread waiting and wakeup (locksupport)
- CS 611 Game
- 【故障诊断】CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace b
- NHibernate method for viewing generated SQL statements
- The yarn deployment mode depends on the pre upload settings
- restframework读取和非读取序列处理
- zipimport. ZipImportError:
猜你喜欢

加快推进工业互联网,图扑“智”绘发展新蓝图

Great! Huaibei and Huaibei enterprises are approved to use special marks for geographical indication products

The Impossible Triangle of NLP?

获取DPI函数返回值永远是96 | 获取DPI函数返回值不正确 | GetDpiForMonitor/GetDeviceCaps返回值不正确的原因
![[fault diagnosis] stitch Py script failure](/img/5c/e5df21674b5d0677484b49a608f8ae.png)
[fault diagnosis] stitch Py script failure

软件架构与模式:结构、组件、关系

使用matplotlib实现GUI交互效果

Flynk deployment mode summary

Web design and production final assignment report -- animator Hayao Miyazaki

JUC - 线程中断与线程等待、唤醒(LockSupport)
随机推荐
flink部署模式(一)- standalone和application
Flynk deployment mode summary
【sdx62】QCMAP_CLI手动拨号操作说明
Monorepo絲滑方法論:引用模塊熱更新
招贤纳士-第23期
【使用指南】清华源的使用
Arrangement of soft test subjects in the second half of 2022
【科研笔记】关于使用openslide切图的下采样倍数
mysql笔记
Gavin's perception of transformer live class - NLU and policies data decryption, source code analysis and practice of insurance BOT in the insurance industry of Rasa dialogue robot project (57)
Debugging wechat built-in browser with chrome
数据库---基础知识
Ora - 15063: ASM discovered an insufficient number of Disks for diskgroup Recovery - - -
DeformConv
[scientific research notes] about using the downsampling multiple of openslide cut
中闽在线:以“积分”为纽带 共享线上渠道资源
Fancy optimizer finishing
@Conditional use
MySQL day02 class notes
mysql day03课堂笔记