Add option for step ca certificate to return certificates in PKCS8 or PKCS12

Đang mở
#1,115 0 bình luận 2 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@hslatman đang làm issue này rồi.

Từ ngày 5/3/2024.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

enhancement needs triage

Hello!

  • Vote on this issue by adding a 👍 reaction
  • If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)

Issue details

Currently, step ca certificate, step ca renew etc will issue a new certificate and key in PKCS1 PEM format, only.
It would be good to add options to allow new certificates to be issued in PKCS8 or PKCS12 as well.

For renewals, the command should also be able to detect the types of the provided certificate file (PKCS8, PKCS1, PKCS12) and process accordingly.

e.g.

step ca renew $PKCS12FILE --expires-in 24h
step ca certificate $CN --file-format pkcs8 --password-file pass.txt $CERTFILE $KEYFILE 
step ca certificate $CN --file-format pkcs12 --no-password $PKCS12FILE  

Why is this needed?

While these can then subsequently be converted to DER, PKCS8, or PKCS12 by other commands, it would be more convenient if there were additional options to allow these formats to be created by the original command. This would in particular help with things such as autorenewals which need to trigger a service restart, greatly simplifying the process.

Ngôn ngữ chính
Go
Star
4.3k
Fork
320
Merge trung bình
2 ngày 3 giờ
Pull request đã merge (30 ngày)
11

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của smallstep/cli

Tất cả issue của smallstep/cli

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.