码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • ZooKeeper SSL User Guide


     创建keyStore、trustStore文件:

    Keystores are used in two different ways,
    If the keystore contains private keys and public certificates that are signed by the private key which are used to authenticate themselves to the connecting party, that is called a keystore.
    And if the keystore contains trusted SSL certificates, that is called a truststore.
    We don’t keep private keys in a truststore.

    I will be discussing the basic steps of creating PKCS12 trustores and keystores that can be used by a client and a server to authenticate via mutual SSL.

    1. Create a keystore for the client

    keytool -genkey -alias Client -keyalg RSA -keystore clientKeyStore.p12 -keysize 2048 -storeType PKCS12

    2. Export the public cert of the client

    keytool -export -keystore clientKeyStore.12 -alias Client -file client.crt

    3. Create a keystore for the server

    keytool -genkey -alias Server -keyalg RSA -keystore serverKeyStore.p12 -keysize 2048 -storeType PKCS12

    4. Export the public cert of the server

    keytool -export -keystore serverKeyStore.p12 -alias Server -file server.crt

    5. Create a truststore for the client

    keytool -genkey -alias ClientTrust -keyalg RSA -keystore clientTrustStore.p12 -keysize 2048 -storeType PKCS12

    6. Create a truststore for the server

    keytool -genkey -alias ServerTrust -keyalg RSA -keystore serverTrustStore.p12 -keysize 2048 -storeType PKCS12

    7. Import the client public cert into the server truststore

    keytool -import -keystore serverTrustStore.p12 -alias Client -file

    8. Import the server public cert into the client truststore

    keytool -import -keystore clientTrustStore.p12 -alias Server -file

    9. Delete the existing private key of the server truststore

    keytool -delete -alias serverTrust -keystore serverTrustStore.p12 -storepass

    10. Delete the existing private key of the client truststore

    keytool -delete -alias clientTrust -keystore clientTrustStore.p12 -storepass

    ZooKeeper SSL User Guideicon-default.png?t=N7T8https://cwiki.apache.org/confluence/display/ZOOKEEPER/ZooKeeper+SSL+User+GuideCertificate for doesn't match any of the subject alternative namesicon-default.png?t=N7T8https://stackoverflow.com/questions/50928061/certificate-for-localhost-doesnt-match-any-of-the-subject-alternative-names

     

  • 相关阅读:
    jQuery
    2025~《数据结构》试题~考研
    JavaScript面试题6
    linux中利用fork复制进程,printf隐藏的缓冲区,写时拷贝技术,进程的逻辑地址与物理地址
    高效数据通道支撑生产情况实时分析与可视化
    vue-router(基本使用、路由重定向、多级路由、路由命名、路由的query和params参数、路由的props配置)(十一)
    工程管理系统简介 工程管理系统源码 java工程管理系统 工程管理系统功能设计
    超简单教你用Python克隆声音(以卷福为例)
    Python图像处理【2】探索Python图像处理库
    idea代码快捷键Mac版
  • 原文地址:https://blog.csdn.net/jxchallenger/article/details/133253653
  • 最新文章
  • 攻防演习之三天拿下官网站群
    数据安全治理学习——前期安全规划和安全管理体系建设
    企业安全 | 企业内一次钓鱼演练准备过程
    内网渗透测试 | Kerberos协议及其部分攻击手法
    0day的产生 | 不懂代码的"代码审计"
    安装scrcpy-client模块av模块异常,环境问题解决方案
    leetcode hot100【LeetCode 279. 完全平方数】java实现
    OpenWrt下安装Mosquitto
    AnatoMask论文汇总
    【AI日记】24.11.01 LangChain、openai api和github copilot
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1
正则表达式工具 cron表达式工具 密码生成工具

京公网安备 11010502049817号