This document now exists on the official ASP.NET core docs page.
- Application
- Request Handling
| Contenuto del file 1 |
| $user = 'user' | |
| $pass = 'pass' | |
| $uri = '<url>' | |
| $pair = "$($user):$($pass)" | |
| $encodedCreds = [System.Convert]::ToBase64String([System.Text.Encoding]::ASCII.GetBytes($pair)) | |
| $basicAuthValue = "Basic $encodedCreds" |
This document now exists on the official ASP.NET core docs page.
To create the code signing certificate using PowerShell (using Administrator prompt):
$cert = New-SelfSignedCertificate -Subject "My Certificate" -Type CodeSigning -CertStoreLocation Cert:\CurrentUser\My -NotAfter (Get-Date).AddYears(100)
To export the certificate from the certificate store:
$certPassword = ConvertTo-SecureString -String "passwordhere" -Force –AsPlainText
$cert | Export-PfxCertificate -FilePath "mycert.pfx" -Password $certPassword
Every now and then I need to create a self signed certificate in azure for something. In my particular case its Azure B2C. I am using a mac so its not simply just running something like
New-SelfSignedCertificate `
-KeyExportPolicy Exportable `
-Subject "CN=yourappname.yourtenant.onmicrosoft.com" `
-KeyAlgorithm RSA `| cinst beyondcompare | |
| cinst beyondcompare-integration |
| <?xml version="1.0" encoding="utf-8"?> | |
| <packages> | |
| <package id="1password" version="7.9.832" /> | |
| <package id="7zip" version="22.1" /> | |
| <package id="7zip.install" version="22.1" /> | |
| <package id="adobereader" version="2022.003.20310" /> | |
| <package id="Boxstarter" version="3.0.0" /> | |
| <package id="Boxstarter.Bootstrapper" version="3.0.0" /> | |
| <package id="Boxstarter.Chocolatey" version="3.0.0" /> | |
| <package id="Boxstarter.Common" version="3.0.0" /> |
| // create CA key | |
| openssl genrsa -out ca.key 2048 | |
| // create CA cert | |
| openssl req -x509 -sha256 -new -nodes -key ca.key -days 365 -out ca.pem | |
| // create client key | |
| openssl genrsa -out client.key 2048 | |
| // create client csr |
| az configure --defaults location=westus2 | |
| # resourceSuffix=$RANDOM | |
| # webName="java-container-cicd-${resourceSuffix}" | |
| # registryName="javacontainercicd${resourceSuffix}" | |
| # dbServerName="java-container-cicd-${resourceSuffix}" | |
| # rgName='java-containers-cicd-rg' | |
| # planName='java-container-cicd-asp' | |
| # az group create --name $rgName |
| name: Terraform Sample 1 | |
| env: | |
| tf_directory: sample-1 | |
| on: | |
| push: | |
| paths: | |
| - 'sample-1/**' | |
| workflow_dispatch: |