Skip to content

Commit

Permalink
Update distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Glatzer committed Aug 3, 2020
1 parent 58760d0 commit a74cb1d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/ACME-PS/ACME-PS.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
ReleaseNotes = 'Please see the release notes from the release distribution page: https://github.com/PKISharp/ACME-PS/releases'

# Prerelase
Prerelease = 'beta2'
# Prerelease = 'beta4'
} # End of PSData hashtable

} # End of PrivateData hashtable
Expand Down
8 changes: 4 additions & 4 deletions dist/ACME-PS/ACME-PS.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -1231,7 +1231,7 @@ function ConvertFrom-UrlBase64 {

process {
$base64 = $InputText.Replace('-','+');
$base64 = $base64.Replace('/', '_');
$base64 = $base64.Replace('_', '/');

while($base64.Length % 4 -ne 0) {
$base64 += '='
Expand Down Expand Up @@ -1457,8 +1457,8 @@ function New-ExternalAccountPayload {
"alg" = $ExternalAccountAlgorithm;
"kid" = $ExternalAccountKID;
"url" = $url;
} | ConvertTo-Json -Compress
$eaPayload = $State.GetAccountKey().ExportPublicJwk() | ConvertTo-Json -Compress;
} | ConvertTo-Json -Compress | ConvertTo-UrlBase64
$eaPayload = $State.GetAccountKey().ExportPublicJwk() | ConvertTo-Json -Compress | ConvertTo-UrlBase64;

$eaHashContent = [Text.Encoding]::ASCII.GetBytes("$($eaHeader).$($eaPayload)");
$eaSignature = (ConvertTo-UrlBase64 -InputBytes $macAlgorithm.ComputeHash($eaHashContent));
Expand Down Expand Up @@ -1671,7 +1671,7 @@ function New-Account {
The algorithm to be used to hash the external account binding.
.PARAMETER ExternalAccountMACKey
The key to hash the external account binding object.
The key to hash the external account binding object (needs to be base64 or base64url encoded)
.EXAMPLE
Expand Down

0 comments on commit a74cb1d

Please sign in to comment.