Skip to content

Releases: webmd-health-services/Carbon.Cryptography

3.4.4+341

22 Jan 00:41
e59f9c8
Compare
Choose a tag to compare
Merge pull request #39 from webmd-health-services/bugfix/find-ccertif…

3.4.3+338

10 Dec 23:38
6578e7f
Compare
Choose a tag to compare
Merge pull request #38 from webmd-health-services/feature/allow-psm1-…

3.4.2

03 Dec 22:28
8385c8f
Compare
Choose a tag to compare

Change to the layout of internal, private, nested dependencies.

3.4.1+331

19 Nov 22:33
c00afce
Compare
Choose a tag to compare
Merge pull request #36 from webmd-health-services/feature/reduce-nesting

Reduce Nesting

3.4.0

10 Jun 19:24
305b027
Compare
Choose a tag to compare

Upgrade Instructions

If upgrading/switching from Carbon's Get-CPermission, Grant-CPermission, Revoke-CPermission, and/or
Test-CPermission to Get-CPrivateKeyPermission, Grant-CPrivateKeyPermission, Revoke-CPrivateKeyPermission, and/or
Test-CPrivateKeyPermission, respectively:

  • Rename usages of Get-CPermission, Grant-CPermission, Revoke-CPermission, and
    Test-CPermission to Get-CPrivateKeyPermission, Grant-CPrivateKeyPermission, Revoke-CPrivateKeyPermission, and
    Test-CPrivateKeyPermission, respectively.
  • Get-CPrivateKeyPermission, Grant-CPrivateKeyPermission, Revoke-CPrivateKeyPermission, and
    Test-CPrivateKeyPermission now write an error and return if passed an identity that does not exist. Add -ErrorAction SilentlyContinue or -ErrorAction Ignore to preserve previous behavior.
  • Grant-CPrivateKeyPermission (when using the -PassThru switch) and Get-CPrivateKeyPermission return
    System.Security.AccessControl.CryptoKeyAccessRule objects if on Windows PowerShell and the .NET framework uses its RSA
    or DSA crypto service provider to manage the private key. Otherwise, it returns
    System.Security.AccessControl.FileSystemAccessRule objects. Update usages accordingly. The two objects have the same
    properties, so most current usages that don't care about the object's type should work unchanged.
  • Get-CPrivateKeyPermission, Grant-CPrivateKeyPermission, Revoke-CPrivateKeyPermission, and
    Test-CPrivateKeyPermission now write warnings if the X509 certificate doesn't have a private key. Add
    -WarningAction SilentlyContinue to usages to preserve previous behavior.
  • Ensure usages of Grant-CPrivateKeyPermission and Test-CPrivateKeyPermission only pass Read and FullControl
    values for the Permission parameter. Those are the only values allowed by the Windows UI, and Carbon is following that
    pattern.
  • Remove usages of the Grant-CPrivateKeyPermission function's -Append switch. Only two permissions are allowed on a
    private key, and one of them is FullControl, so it doesn't make sense to allow both Read and FullControl
    permissions.
  • Remove usages of the Grant-CPrivateKeyPermission and Test-CPrivateKeyPermission functions' -ApplyTo parameter.
  • Remove usages of the Grant-CPrivateKeyPermission and Revoke-CPrivateKeyPermission functions' Description
    parameter.

Added

  • Function Get-CPrivateKey for getting an X509 certificate's private key (Windows only).
  • Function Get-CPrivateKeyPermission for getting the permissions on an X509 certificate's private key (Windows only).
  • Function Grant-CPrivateKeyPermission for granting permissions to an X509 certificate's private key (Windows only).
  • Function Resolve-CPrivateKeyPath for getting the path to an X509 certificate's private key (Windows only).
  • Function Revoke-CPrivateKeyPermission for removing permissions to an X509 certificate's private key (Windows only).
  • Function Test-CPrivateKeyPermission for testing permission on an X509 certificate's private key (Windows only).

3.3.0

31 Jan 17:56
70905cb
Compare
Choose a tag to compare

Find-CCertificate and Find-CTlsCertificate now support finding certificates with a Subject Alternative Name that
contains a wildcard that matches the given HostName. For example: Passing test.example.com to the HostName parameter
will return a certificate whose Subject Alternative Name contains *.example.com.

3.2.0

17 Oct 18:38
1f6bf27
Compare
Choose a tag to compare

When reading certificates from a file, the module now disposes references to those certificates as soon it is done with
them. This limits the amount of time a certificate's private key spends on disk when the certificate has been loaded
from a file.

3.1.3

26 Apr 18:03
fdbcc55
Compare
Choose a tag to compare

Fixed: Convert-CCertificateProvider returns a value even when it performs no conversion.

3.1.2

10 Mar 17:13
Compare
Choose a tag to compare

Fixed: Convert-CCertificateProvider fails on Windows Server 2012 R2 when a certificate isn't password-protected.

3.1.1

08 Mar 22:50
Compare
Choose a tag to compare

Fixed: Find-CCertificate fails if a certificate's subject alternate name is null or has a null value.