Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

The certificate is due #4

Closed
Jimmy2004 opened this issue Dec 16, 2020 · 2 comments
Closed

The certificate is due #4

Jimmy2004 opened this issue Dec 16, 2020 · 2 comments

Comments

@Jimmy2004
Copy link

No description provided.

@Jimmy2004 Jimmy2004 changed the title T和 The certificate is due Dec 16, 2020
@Jimmy2004
Copy link
Author

Powershell says that it cannot be installed because of the *.cer file has some issues.

@jjonescz
Copy link
Member

This is just a development certificate, you can renew it yourself (see Create a certificate for package signing) and re-sign the app package (see Sign an app package using SignTool).

I have updated the latest release to include the renewed certificate.

Alternatively, you can follow these steps to renew the certificate yourself:

  1. Download your chosen release, i.e., ipasim-build-v*.zip.
  2. Extract it and navigate to folder with the package (.msix file).
  3. Open elevated PowerShell in that folder.
  4. Replace path to signtool depending on your installed Windows SDK in the following script (3rd line) and then execute it:
    $cert = New-SelfSignedCertificate -Type Custom -Subject "CN=jjone" -KeyUsage DigitalSignature -FriendlyName "ipaSim" -CertStore Cert:\CurrentUser\My\ -TextExtension @("2.5.29.37={text}1.3.6.1.5.5.7.3.3", "2.5.29.19={text}")
    Export-PfxCertificate -cert $cert -FilePath key.pfx -Password $(ConvertTo-SecureString -String "ipaSim" -Force -AsPlainText)
    & 'C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x64\signtool.exe' sign /fd sha256 /a /f key.pfx /p ipaSim .\IpaSimApp_*.msix
    Remove-Item key.pfx
    Export-Certificate -Cert $cert -FilePath (Get-ChildItem .\IpaSimApp_*.cer).name
    Remove-Item $cert.PSPath
  5. The certificate (.cer file) should be renewed and the app package (.msix file) signed. You can now install the app by executing ./Add-AppDevPackage.ps1 as usual.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants