码农知识堂 - 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

     

  • 相关阅读:
    用于数据分析和数据科学的SQL教程
    系统性认知网络安全
    编写字符串发送在开发板操作
    一文带你了解以色列的当红38家网络安全公司
    React的Context
    华为云云耀云服务器L实例评测|华为云耀云服务器L实例启动宠物预约项目(九)
    到此一游︱2022 Google 开发者大会
    Ansible学习笔记09-剧本中使用变量2
    强强合作,替代钉盘/微盘,企业实现低成本扩容
    Vue组件中的生命周期函数执行流程
  • 原文地址:https://blog.csdn.net/jxchallenger/article/details/133253653
  • 最新文章
  • 【JVM】编译执行与解释执行的区别是什么?JVM 使用哪种方式?
    用 Hashids 优雅解决 C 端自增 ID 暴露问题
    V8引擎 精品漫游指南--Ignition篇(上) 指令 栈帧 槽位 调用约定 内存布局 基础内容
    LLVM Pass快速入门(四):代码插桩
    milkup:桌面端 markdown AI续写和即时渲染
    基于项目工程构建SBOM(软件物料清单)的研究
    鸿蒙应用开发UI基础第二节:鸿蒙应用程序框架核心解析与实操
    .NET 中如何快速实现 List 集合去重?
    扣子Coze实战:从0到1打造抖音+小红书热点监控智能体
    浅谈数据访问层
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
小工具 小游戏
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1

京公网安备 11010502049817号