Files
UA-.NETStandard/Tests/customtest.bat
T
romanett 14befa0eeb GDS: Trust own CA & add revoked Certificates to CRL (#2333)
With this Pull Request i improve the reusability of the Code by changing reverences to CertificateGroup to the Interface ICertificateGroup, through this change users can extend the functionality of CertificateGroup by providing an own implementation.
Furthermore I fix two issues of the GDS:
- The GDS does not trust its own CA Certificate, therefore it rejects connection attempts from clients with a CA signed certificate (e.g. after a sucessful registration & a new CA signed Application certificate received -> Client tries to connect with the new certificate to get the TrustList -> gets rejected)
-> new Method AddOwnCertificateToTrustedStoreAsync added to Class ApplicationInstance
-> you can call this after starting the GDS Server with CA-Certificate of the GDS as parameter

- The GDS does not revoke Certificate in the TrustedList Store CRL, so OPC UA Applications can´t get revoked certs
-> this is fixed by adding a call to UpdateAuthorityCertInTrustedList to the method RevokeCertificateAsync
2023-12-07 17:38:54 +01:00

50 lines
1.5 KiB
Batchfile

@echo off
setlocal enabledelayedexpansion
echo This script is used to run custom platform tests for the UA Core Library
echo Supported parameters: net462, netstandard2.0, netstandard2.1, net48, net6.0, net8.0
REM Check if the target framework parameter is provided
if "%1"=="" (
echo Usage: %0 [TargetFramework]
echo Allowed values for TargetFramework: net462, netstandard2.0, netstandard2.1, net48, net6.0, net8.0, default
goto :eof
)
REM Check if the provided TargetFramework is valid
set "validFrameworks= default net462 netstandard2.0 netstandard2.1 net48 net6.0 net8.0"
if "!validFrameworks: %1 =!"=="%validFrameworks%" (
echo Invalid TargetFramework specified. Allowed values are: default, net462, netstandard2.0, netstandard2.1, net48, net6.0, net8.0
goto :eof
)
if "%1"=="default" (
echo Using the default targets for the test runners.
goto :cleanup
)
REM this is the variable used to switch the build scripts to a dedicated target
echo Using the %1 CustomTestTargets for the test runners.
set CustomTestTarget=%1
:cleanup
REM clean up all obj and bin folders
REM Set the root directory path as batch file location
set "root=%~dp0"
REM Delete 'obj' and 'bin' folders
for /d /r "%root%" %%d in (*obj *bin) do (
echo Deleting "%%d"
del /S /F /Q "%%d\*.*"
rmdir /s /q "%%d"
)
echo Clean up complete.
echo restore %1
dotnet restore -f "..\UA Core Library.sln"
dotnet build --no-restore "..\UA Core Library.sln"
dotnet test "..\UA Core Library.sln"