Code signing certificate expired on version 1.25.0

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

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

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
18/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Lĩnh vực
release

Hướng nghiên cứu

The problem is in the signed package, not in source code: open the .signature.p7s file inside the 1.25.0 nupkg and check the certificate chain, and compare it with the signed PSScriptAnalyzer.psm1. Fixing it requires the project's signing credentials and a release decision from maintainers, so a newcomer can only confirm the expiry and discuss an RFC 3161 timestamp approach. Done means a re-signed or timestamped release that passes the chain check.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

  • The code signing certificate used to sign PSScriptAnalyzer version 1.25.0 has expired and the PSScriptAnalyzer.psm1 does not contain a RFC 3161 timestamp (which could be used to confirm the file was created before the certificate expiration). This makes it difficult to "clean-source" PSScriptAnalyzer before integrating it

Steps to reproduce

  1. Open the ".signature.p7s" file contained in the nupkg package
  2. In "certmgr", browse to the "Microsoft Corporation" code signing certificate and open it
  3. You will see the certificate has expired.

Expected behavior

The code signing chain is intact and valid

Actual behavior

image

If an unexpected error was thrown then please report the full error details using e.g. $error[0] | Select-Object *

Environment data

> $PSVersionTable
Name                           Value                                                                                                     
----                           -----                                                                                                     
PSVersion                      5.1.26100.9444                                                                                            
PSEdition                      Desktop                                                                                                   
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                                   
BuildVersion                   10.0.26100.9444                                                                                           
CLRVersion                     4.0.30319.42000                                                                                           
WSManStackVersion              3.0                                                                                                       
PSRemotingProtocolVersion      2.3                                                                                                       
SerializationVersion           1.1.0.1  


> (Get-Module -ListAvailable PSScriptAnalyzer).Version | ForEach-Object { $_.ToString() }
PSScriptAnalyzer).Version: 1.24.0
Ngôn ngữ chính
C#
Star
2.2k
Fork
422
Merge trung bình
2 giờ 23 phút
Pull request đã merge (30 ngày)
25

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

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

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 PowerShell/PSScriptAnalyzer

Tất cả issue của PowerShell/PSScriptAnalyzer

Issue tương tự

Thêm issue về C#

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.