updated 2024-09-20
Version 2409? (Build 16.0.17928.20148)
| param($result) | |
| if ($result.IsSuccess -eq $true) | |
| { | |
| # Convert CNG certificate storage to CSP (for Exchange 2013) | |
| $tempfile = "$env:TEMP\CertifyTemp.pfx" | |
| $pfx = get-pfxcertificate -filepath $result.ManagedItem.CertificatePath | |
| certutil -f -p Certify -exportpfx $pfx.SerialNumber $tempfile | |
| certutil -delstore my $pfx.SerialNumber | |
| certutil -p Certify -csp "Microsoft RSA SChannel Cryptographic Provider" -importpfx $tempfile |
| using System; | |
| using System.Web; | |
| namespace Application | |
| { | |
| public static class Extensions | |
| { | |
| public static bool IsTldMatch(this Uri Url, string Tld) | |
| { | |
| if (HttpRequest.Url.Host == Tld || HttpRequest.Url.Host.EndsWith(string.Concat(".", Tld)) // could just as well return the result of this... |
| using System; | |
| using System.Numerics; | |
| using System.Security.Cryptography; | |
| namespace ConsoleApplication1 | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { |