Comments (2)
Hi Patrick!
Thank you for your question.
The ISSLTrustManager
is the interface that can be passed to the DynatraceOpenKitBuilder
as well as the AppMonOpenKitBuilder
.
OpenKit offers two implementations
SSLStrictTrustManager
- used by default - which only accepts valid server certificates https://github.com/Dynatrace/openkit-dotnet/blob/main/src/Dynatrace.OpenKit/Protocol/SSL/SSLStrictTrustManager.csSSLBlindTrustManager
accepting any certificate offered by the server https://github.com/Dynatrace/openkit-dotnet/blob/main/src/Dynatrace.OpenKit/Protocol/SSL/SSLBlindTrustManager.cs
Please be aware thatSSLBlindTrustManager
shall not be used in production.
Example of how to use SSLBlindTrustManager
var openKit = new DynatraceOpenKitBuilder(BeaconEndpoint, CustomAppUuid, DeviceIdentifier)
.WithApplicationVersion("1.0.0")
.WithOperatingSystem(Environment.OSVersion.VersionString)
.WithTrustManager(new SSLBlindTrustManager()) // this line overides the default SSLStrictTrustManager
.WithDataCollectionLevel(DataCollectionLevel.USER_BEHAVIOR)
.WithCrashReportingLevel(CrashReportingLevel.OPT_IN_CRASHES)
.EnableVerbose()
.Build();
If you want to implement your own SSLTrustManager, you'll need to implement the ISSLTrustManager
interface, which consists of only one getter property, that returns an RemoteCertificateValidationCallback
.
Details about the RemoteCertificateValidationCallback
can be found in the official Microsoft documentation https://docs.microsoft.com/en-us/dotnet/api/system.net.security.remotecertificatevalidationcallback?view=netcore-3.1
Best
Stefan
from openkit-dotnet.
Thank you very much vor the quick reply!
from openkit-dotnet.
Related Issues (10)
- Use OpenKit through proxy HOT 5
- All sessions have same cookie identifier HOT 4
- Session Properties: Is it possible to add them HOT 8
- OpenTracing / OpenTelemetry support HOT 1
- Session creation fails HOT 8
- User session crash on DoLeaveAction(Boolean discardData) HOT 8
- WCF with TCP binding HOT 1
- Install/Update with Nuget HOT 2
- The latest versions does not seem to work with AppMon HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openkit-dotnet.