---
title: "How to create a KeyStore with certificate chain"
author: "jy00509336"
date: "2016-08-04T05:38:58Z"
tags: []
categories: ["企业架构"]
slug: "how-to-create-a-keystore-with-certificate-chain"
draft: false
lastmod: "2016-08-04T05:38:58Z"
id: 2315413
url: "https://rokin.iteye.com/blog/2315413"
---

https://support.adeptia.com/hc/en-us/articles/207878953-How-to-create-a-KeyStore-with-certificate-chain

 

cat myserver.srt intermediate.crt root.crt &gt; cert-chain.txt

 

openssl pkcs12 -export -inkey server.key -in cert-chain.txt -out cert-chain.pkcs12

 

keytool -importkeystore -srckeystore cert-chain.pkcs12 -srcstoretype PKCS12 -destkeystore SSLKeystore.jks