如何更改钥匙串中自行创建的证书颁发机构的到期日期

问题描述:

我正在尝试使用存储的公共&在Mac上的钥匙串中创建证书颁发机构私钥。输出CA的有效日期为创建日期起的一年。

I'm trying to create a Certificate Authority in Keychain on Mac using stored public & private keys. The output CA has an expiration date of a year from the creation date.

我想增加证书有效期的时间。

I would like to increase the duration of the certificate validity.

我可以在Linux上使用教程通过以下命令进行操作:

I can do it on linux with this tutorial by the following command:

openssl req -x509 -newkey rsa:2048 -out cacert.pem -outform PEM -days 1825

该命令将创建5年后失效的证书颁发机构。

The command will create a certificate authority that expires in 5 years.

是否可以使用钥匙串或其他方法(更改某些配置文件)来执行此操作?和如何?

Is it possible to do that using keychain or another method (changing some configuration files)? and HOW?

我在证书助手的第一个屏幕上找到了创建您的证书颁发机构。只需点击让我覆盖默认设置即可。单击继续,然后在下一个屏幕上会出现一个框,以填写有效期。

I found it on the first screen on the Certificate Assistant "Create Your Certificate Authority". Just click the "Let me override defaults". Click "Continue" and the next screen has a box to fill in the validity duration.

去那里。