I hereby claim:
- I am xabim on github.
- I am xabim (https://keybase.io/xabim) on keybase.
- I have a public key whose fingerprint is 042F D72C E015 EAB4 F385 DAEE 2AC2 A942 BA95 DB8C
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
{"version":1,"resource":"file:///Users/javier.marti/code/work/development/flywire-core/deploy/infra/environments/puzzle.json","entries":[{"id":"lNdK.json","timestamp":1651816919166}]} |
2018-07-04T11:57:25.165+0200 [DEBUG] plugin.terraform-provider-cloudflare_v1.0.0_x4: | |
2018/07/04 11:57:25 [DEBUG] CloudFlare Record create configuration: cloudflare.DNSRecord{ | |
ID:"", | |
Type:"SRV", | |
Name:"_sipfederationtls._tcp.DOMAIN.com", | |
Content:"", | |
Proxiable:false, | |
Proxied:false, | |
TTL:0, Locked:false, | |
ZoneID:"e51da254a970ea32cd0a36f6189f8186", |
Write-Host "Creating CertificateRequest(CSR) for $CertName `r " | |
Invoke-Command -ComputerName testbox -ScriptBlock { | |
$CertName = "Script Automation" | |
$CSRPath = "c:\temp\$($CertName)_.csr" | |
$INFPath = "c:\temp\$($CertName)_.inf" | |
$Signature = '$Windows NT$' | |
$Cert = Get-ChildItem Cert:\LocalMachine\My | Where-Object {$_.Subject -like 'CN=Script Automation'} | |
$EncryptedPwd = @' | |
-----BEGIN CMS----- | |
MIIBqAYJKoZIhvcNAQcDoIIBmTCCAZUCAQAxggFQMIIBTAIBADA0MCAxHjAcBgNVBAMMFVBvd2Vy | |
HrgQ84JxSV7RYpwSMPJRuSXlgVubOIew8KsYXr/E8kd/wOyT/2NPi3d+4xb67CLUM4infqOrt9Q+ | |
ReAtINvfVB5EPc9wU8yDpdz+WKProT4RJ94nzGH5qW5SK4O1Siu0VSPJZaCNb+CmYNFNNvLu6MN4 | |
-----END CMS----- | |
'@ | |
$DecryptedPwd = $EncryptedPwd | Unprotect-CmsMessage -To $Cert | ConvertTo-SecureString -AsPlainText -Force |
$EncryptedPwd = "ts32rCLLdZl3/6wINHtLD6bQO65ub….. <shortened for simplicity>" | |
$EncryptedBytes = [System.Convert]::FromBase64String($EncryptedPwd) | |
$DecryptedBytes = $Cert.PrivateKey.Decrypt($EncryptedBytes, $true) | |
$DecryptedPwd = [system.text.encoding]::UTF8.GetString($DecryptedBytes) |
$Cert = Get-ChildItem Cert:\LocalMachine\My | Where-Object {$_.Subject -like "CN=Script Automa*"} | |
$Password = 'Password' | |
Protect-CmsMessage -To $Cert -Content $Password |
$Cert = Get-ChildItem Cert:\LocalMachine\My | Where-Object {$_.Subject -like "CN=Script Automa*"} | |
$Password = 'Password' | |
$EncodedPwd = [system.text.encoding]::UTF8.GetBytes($Password) | |
$EncryptedBytes = $Cert.PublicKey.Key.Encrypt($EncodedPwd, $true) | |
$EncryptedPwd = [System.Convert]::ToBase64String($EncryptedBytes) |