./bin/elasticsearch-certutil ca --pem # 生成一个名字叫做elastic-stack-ca.zip的文件

unzip elastic-stack-ca.zip 
Archive:  elastic-stack-ca.zip
   creating: ca/
  inflating: ca/ca.crt               
  inflating: ca/ca.key             

###########
 ./bin/elasticsearch-certutil cert --ca-cert ./ca/ca.crt --ca-key ./ca/ca.key --pem --name localhost # 这个证书只能在当前的localhost中进行使用,生产一个叫做certificate-bundle.zip的文件

unzip certificate-bundle.zip 
Archive:  certificate-bundle.zip
   creating: localhost/
  inflating: localhost/localhost.crt  
  inflating: localhost/localhost.key  

# 使用如下的命令把一个.crt的证书转换为一个.pem的证书
openssl x509 -in mycert.crt -out mycert.pem -outform PEM

相关文章:

  • 2021-07-04
  • 2022-02-09
  • 2021-08-12
  • 2021-12-05
  • 2021-05-10
  • 2021-07-06
猜你喜欢
  • 2021-08-11
  • 2021-11-23
  • 2021-11-28
  • 2022-12-23
  • 2021-12-21
  • 2021-12-04
相关资源
相似解决方案