Create a Certificate Authority private key (this is your most important key):

$ openssl req -new -newkey rsa:1024 -nodes -out ca.csr -keyout ca.key

Create your CA self-signed certificate:

$ openssl x509 -trustout -signkey ca.key -days 365 -req -in ca.csr -out ca.pem

Issue a client certificate by first generating the key, then request (or use one provided by external system) then sign the certificate using private key of your CA:

$ openssl genrsa -out client.key 1024
$ openssl req -new -key client.key -out client.csr
$ openssl ca -in client.csr -out client.cer

(You may need to add some options as I am using these commands together with my openssl.conf file. You may need to setup your own .conf file first.)

 

Reference:

https://jamielinux.com/articles/2013/08/create-an-intermediate-certificate-authority/

相关文章:

  • 2021-07-15
  • 2021-10-10
  • 2022-12-23
  • 2021-08-02
  • 2022-12-23
  • 2022-01-25
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-09
  • 2022-12-23
  • 2021-10-05
  • 2022-12-23
  • 2021-05-26
  • 2021-12-13
  • 2022-12-23
相关资源
相似解决方案