How to change the expiration date for a self created Certificate Authority in keychain

隐身守侯 提交于 2020-06-28 05:25:44

问题


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.

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

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?


回答1:


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.

There you go.



来源:https://stackoverflow.com/questions/12448167/how-to-change-the-expiration-date-for-a-self-created-certificate-authority-in-ke

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!