Add comment.
This commit is contained in:
parent
ba71b192a9
commit
3b4556b9c4
@ -13,6 +13,12 @@ namespace Identity.API.Certificate
|
|||||||
{
|
{
|
||||||
var assembly = typeof(Certificate).GetTypeInfo().Assembly;
|
var assembly = typeof(Certificate).GetTypeInfo().Assembly;
|
||||||
var names = assembly.GetManifestResourceNames();
|
var names = assembly.GetManifestResourceNames();
|
||||||
|
|
||||||
|
/***********************************************************************************************
|
||||||
|
* Please note that here we are using a local certificate only for testing purposes. In a
|
||||||
|
* real environment the certificate should be created and stored in a secure way, which is out
|
||||||
|
* of the scope of this project.
|
||||||
|
**********************************************************************************************/
|
||||||
using (var stream = assembly.GetManifestResourceStream("Identity.API.Certificate.idsrv3test.pfx"))
|
using (var stream = assembly.GetManifestResourceStream("Identity.API.Certificate.idsrv3test.pfx"))
|
||||||
{
|
{
|
||||||
return new X509Certificate2(ReadStream(stream), "idsrv3test");
|
return new X509Certificate2(ReadStream(stream), "idsrv3test");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user