如何更改钥匙串中自行创建的证书颁发机构的到期日期 [英] How to change the expiration date for a self created Certificate Authority in keychain

查看:100
本文介绍了如何更改钥匙串中自行创建的证书颁发机构的到期日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用存储的公共&在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.

去那里。

这篇关于如何更改钥匙串中自行创建的证书颁发机构的到期日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆