-
Notifications
You must be signed in to change notification settings - Fork 957
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ApplicationConfiguration.SaveToFile() removes "RejectSHA1SignedCertificates" #184 #930
Comments
Hi @PrashantDesai , ApplicationConfiguration.SaveToFile(string filePath) writes in the file only the members that have a value different from the default of the type.
RejectSHA1SignedCertificates will be written in the file only if its value is "true". Please note that SaveToFile() produces a slightly different output compared to the initial xml configuration file. e.g it also removes the comments. |
OK
Thank you
I will check this and let you know
From: Alin Moldovean <[email protected]>
Sent: Monday, March 30, 2020 3:14 PM
To: OPCFoundation/UA-.NETStandard <[email protected]>
Cc: Prashant K. Desai <[email protected]>; Mention <[email protected]>
Subject: Re: [OPCFoundation/UA-.NETStandard] ApplicationConfiguration.SaveToFile() removes "RejectSHA1SignedCertificates" #184 (#930)
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
Hi @PrashantDesai<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FPrashantDesai&data=02%7C01%7Cprashant.k.desai%40in.abb.com%7Cc2684bf19cf64278137808d7d48eea7f%7C372ee9e09ce04033a64ac07073a91ecd%7C0%7C1%7C637211582594764816&sdata=A7QTcB%2Bpej%2FNqEwYbEELza6o85xLmEPlJvqvNl9uxTw%3D&reserved=0> ,
ApplicationConfiguration.SaveToFile(string filePath) writes in the file only the members that have a value different from the default of the type.
This is because EmitDefaultValue = false for all the members of configuration classes.
//
// Summary:
// Gets or sets a value that specifies whether to serialize the default value for
// a field or property being serialized.
//
// Returns:
// true if the default value for a member should be generated in the serialization
// stream; otherwise, false. The default is true.
public bool EmitDefaultValue { get; set; }
RejectSHA1SignedCertificates will be written in the file only if its value is "true".
Please note that SaveToFile() produces a slightly different output compared to the initial xml configuration file. e.g it also removes the comments.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FOPCFoundation%2FUA-.NETStandard%2Fissues%2F930%23issuecomment-605896250&data=02%7C01%7Cprashant.k.desai%40in.abb.com%7Cc2684bf19cf64278137808d7d48eea7f%7C372ee9e09ce04033a64ac07073a91ecd%7C0%7C1%7C637211582594764816&sdata=LJZHjy3cfioZcUlMKAwvbjrkTsVB%2F6ylfpJyGFIyDSU%3D&reserved=0>, or unsubscribe<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABMWOHDN5PZSTPNPZIBYYI3RKBSXBANCNFSM4LT6VAJA&data=02%7C01%7Cprashant.k.desai%40in.abb.com%7Cc2684bf19cf64278137808d7d48eea7f%7C372ee9e09ce04033a64ac07073a91ecd%7C0%7C1%7C637211582594774772&sdata=688UcGSxU5jSodqHbOBi9onqkb0Yliy5sauToISLlnQ%3D&reserved=0>.
|
We are facing exactly present in this link: If we remove RejectSHA1SignedCertificates in XML the following code gives error as present the above link, then if we put back flag again as false it works fine,
|
we are using 1.4.360.33 nu get package |
Hi @PrashantDesai , The problem is that you application instance certificate has a SHA1 signature that is not trusted anymore.
|
Hello Alin, Thanks a lot. It is working. |
OPCFoundation/UA-.NET-Legacy#184
Is this problem is resolved in following Nuget package?? It is not working for me
1.4.360.33
The text was updated successfully, but these errors were encountered: