-
openssl genrsa -out rootca.key 8192
-
openssl req -sha512 -new -x509 -days 3650 -key rootca.key -out rootca.crt
-
touch certindex echo 1000 > certserial echo 1000 > crlnumber
-
mkdir enduser-certs
-
openssl genrsa -out enduser-certs/enduser-example.com.key 4096
-
openssl req -new -sha512 -key enduser-certs/enduser-example.com.key -out enduser-certs/enduser-example.com.csr
openssl req -new -sha512 -key enduser-certs/dev.key -out enduser-certs/dev.csr
openssl req -new -sha512 -key enduser-certs/dev.key -out enduser-certs/dev.csr
- openssl ca -batch -config ca.conf -notext -in enduser-certs/enduser-example.com.csr -out enduser-certs/enduser-example.com.crt
openssl ca -batch -config C:\Users\tnanjundaiah\Certs\root\ca.config -notext -in enduser-certs/dev.csr -out enduser-certs/dev.crt
on config error set OPENSSL_CONF=C:\Users\tnanjundaiah\Certs\root\ca.config openssl ca -batch -notext -in enduser-certs/dev.csr -out enduser-certs/dev.crt
After that set set OPENSSL_CONF=C:\OpenSSL-Win64\bin\cnf\openssl.cnf
- Generate pfx file cd enduser-certs
openssl pkcs12 -export -out dev.pfx -inkey dev.key -in dev.crt
Link : https://docs.microsoft.com/en-us/style-guide/welcome/
https://docs.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/i/invalid-not-valid
https://simpl.info/srcsetwvalues/
Our contract should have least specific types. Consumer can cast to their usage.
https://stackoverflow.com/questions/3228708/what-should-i-use-an-ienumerable-or-ilist
<SolutionToBuild Include="$(BuildProjectFolderPath)/WebSln.sln">
<Targets></Targets>
<Properties>OutDir=$(OutDir)\Webproj\</Properties>
</SolutionToBuild>
<SolutionToBuild Include="$(BuildProjectFolderPath)/Tools/CertificateUploader/CertificateUploader.csproj">
<Targets></Targets>
<Properties>OutDir=$(OutDir)\Tools\CertificateUploader\;Configuration=Release;Platform=AnyCPU</Properties>
</SolutionToBuild>
Make sure OutDir is the first argument in the preopties list.
Copying file from out directory
<Target Name="AfterCompile">
<!--Delete .\artifacts\ directory if exists-->
<Exec Command="IF EXIST $(ArtifactsRoot) (RMDIR /S /Q $(ArtifactsRoot))" />
<!--Create .\artifacts\ directory-->
<Exec Command="IF NOT EXIST $(ArtifactsRoot) (MKDIR $(ArtifactsRoot))" />
<!--Copy build output to .\artifacts\ directory-->
<!--Copy websites-->
<Exec Command="XCOPY "$(Binaries)\Release\Webproj\_PublishedWebsites\*.*" "$(ArtifactsRoot)\Websites\*.*" /y /e"/>
<Exec Command="XCOPY "$(Binaries)\Release\Tools\CertificateUploader\*.*" "$(ArtifactsRoot)\Tools\CertificateUploader\*.*" /y /e"/>
</Target>
Costura is an add-in for Fody
Embeds dependencies as resources.
https://github.com/Fody/Costura