-
Notifications
You must be signed in to change notification settings - Fork 923
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for custom certificate stores (#1420)
The current SDK supports only Windows and Directory certificate stores. For security reasons, it can be necessary to use custom certificate stores. * Add support for custom certificate stores * Certificate Store Type UnitTests * Start cleanup of ICertificateStore interface in the CRL section (Co-authored-by: Martin Regen <mregen@microsoft.com>)
- Loading branch information
1 parent
dd6f4a4
commit 61e204f
Showing
11 changed files
with
364 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
Stack/Opc.Ua.Core/Security/Certificates/ICertificateStoreType.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* Copyright (c) 1996-2020 The OPC Foundation. All rights reserved. | ||
The source code in this file is covered under a dual-license scenario: | ||
- RCL: for OPC Foundation members in good-standing | ||
- GPL V2: everybody else | ||
RCL license terms accompanied with this source code. See http://opcfoundation.org/License/RCL/1.00/ | ||
GNU General Public License as published by the Free Software Foundation; | ||
version 2 of the License are accompanied with this source code. See http://opcfoundation.org/License/GPLv2 | ||
This source code is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
*/ | ||
|
||
namespace Opc.Ua | ||
{ | ||
/// <summary> | ||
/// Supports implementation for custom certificate store type. | ||
/// </summary> | ||
public interface ICertificateStoreType | ||
{ | ||
/// <summary> | ||
/// Determines if the store path is supported by the store type. | ||
/// </summary> | ||
/// <param name="storePath">The store path to examine.</param> | ||
/// <returns><see langword="true"/> if the store type supports the given store path, otherwise <see langword="false"/>.</returns> | ||
bool SupportsStorePath(string storePath); | ||
|
||
/// <summary> | ||
/// Creates a new certificate store. | ||
/// </summary> | ||
/// <returns>A reference to the new certificate store object</returns> | ||
ICertificateStore CreateStore(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.