1 Star 3 Fork 1

apiumc/WebVPN

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Certificater.cs 1.39 KB
一键复制 编辑 原始数据 按行查看 历史
apiumc 提交于 2025-01-21 18:42 +08:00 . Change
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Security.Cryptography.X509Certificates;
namespace UMC.ITME
{
public class Certificater
{
static ConcurrentDictionary<string, int> _Hosts = new ConcurrentDictionary<string, int>();
public static ConcurrentDictionary<string, int> UnCertificatesHosts
{
get
{
return _Hosts;
}
}
public static ConcurrentDictionary<string, Certificater> Certificates
{
get
{
return _certificates;
}
}
static ConcurrentDictionary<string, Certificater> _certificates = new ConcurrentDictionary<string, Certificater>();
public string Name
{
get; private set;
}
public Certificater(String name, X509Certificate2 x509, uint time)
{
this.Name = name;
this.Certificate = x509;
this.Time = time;
}
public Certificater(String name, X509Certificate2 x509)
{
this.Name = name;
this.Certificate = x509;
this.Time = Utility.TimeSpan(x509.NotAfter);
}
public X509Certificate2 Certificate
{
get; private set;
}
public uint Time
{
get; private set;
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/apiumc/WebVPN.git
git@gitee.com:apiumc/WebVPN.git
apiumc
WebVPN
WebVPN
master

搜索帮助