opencertserver.ca.utils
5.0.0-beta-93
dotnet add package opencertserver.ca.utils --version 5.0.0-beta-93
NuGet\Install-Package opencertserver.ca.utils -Version 5.0.0-beta-93
<PackageReference Include="opencertserver.ca.utils" Version="5.0.0-beta-93" />
<PackageVersion Include="opencertserver.ca.utils" Version="5.0.0-beta-93" />
<PackageReference Include="opencertserver.ca.utils" />
paket add opencertserver.ca.utils --version 5.0.0-beta-93
#r "nuget: opencertserver.ca.utils, 5.0.0-beta-93"
#:package opencertserver.ca.utils@5.0.0-beta-93
#addin nuget:?package=opencertserver.ca.utils&version=5.0.0-beta-93&prerelease
#tool nuget:?package=opencertserver.ca.utils&version=5.0.0-beta-93&prerelease
opencertserver.ca.utils
The foundational X.509 / PKI helper library and the home of the core CA contracts that
the rest of the OpenCertServer stack compiles against. It is a dependency-free leaf
library (no package or project references): every CA-dependent project —
opencertserver.ca,
opencertserver.ca.server,
opencertserver.ca.client,
opencertserver.est.server,
opencertserver.scep.server,
opencertserver.tpm,
opencertserver.mcp,
opencertserver.cli and others — references this one, so
it is the common ground for certificate issuance, revocation, OCSP and CRL handling.
What is in here
Ca— the authority contracts.ICertificateAuthorityis the central abstraction:SignCertificateRequest/SignCertificateRequestPem(sign a CSR against a profile, with optional requestor, re-enrollment anchor and validity window),GetRootCertificates,GetPublishedCertificates,GetSupportedProfiles,RevokeCertificateandGetRevocationList. The result type isSignCertificateResponse(Successcarries the issued certificate plus issuer chain;Errorcarries the rejection messages). Supporting contracts:IStoreCaProfiles(GetProfile(name)/GetProfiles()),IStoreCertificates(add / revoke / paging, and the issuing-profile provenance used for profile-bound re-enrollment),IValidateCertificateRequests+ICertificateRequestValueConverter(identity checks),CaProfile, andInMemoryCertificateStore.Ocsp— RFC 6960 OCSP. Request/response models (OCSPRequest,OcspResponse,OcspBasicResponse,SingleResponse,RevokedInfo), responder identifiers by key or by name, andIValidateOcspRequest/IResponderId.Pkcs7— CMS / PKCS#7 (RFC 5652).EnvelopedData,SignedData,SignerInfo, recipient and content info, and the algorithm/identifier types used to build and read CMS structures.X509andX509/Templates— ASN.1 and name encoding.X509Name, the ASN.1 value types (AsnString,AsnOctetString,GeneralNames,AttributeTypeValue, …) and theX509CertificateTemplate-style builders for CSRs and extensions.X509Extensions— extension helpers. CRL number, delta-CRL indicator, freshest-CRL, issuer-alt-name, certificate-policies and raw-extension builders, plusX509CertificatesExtensions.Validation— certificate-identity validation.CertificateIdentityValidator,IdentityMatcher,ServiceIdentity/ILookUpServiceProvider, and the failure/result types.- Shared value types:
Oids,TypeVersion,PasswordHash,EncodingExtensions,CertificateExtensions,CertificateRequestsExtensions,NameTemplate,RDNSequenceTemplate,RevokedCertificate.
How to use it
This is a library, not an application. You depend on it to implement or consume a CA. The
primary seam is ICertificateAuthority, which the in-process CA core
(opencertserver.ca) implements and which opencertserver.ca.client implements remotely as
RemoteCertificateAuthority:
using OpenCertServer.Ca.Utils.Ca;
// In-process: sign through the CA core that implements ICertificateAuthority.
Task<SignCertificateResponse> SignCertificateRequestPem(
string csrPem,
string? profileName = null,
ClaimsIdentity? requestor = null,
X509Certificate2? reenrollingFrom = null,
DateTimeOffset? notBefore = null,
DateTimeOffset? notAfter = null,
CancellationToken cancellationToken = default);
// A Success carries the issued leaf plus the issuer chain; an Error carries the reasons.
var response = await authority.SignCertificateRequestPem(csrPem, profile: "rsa");
To back an authority you implement IStoreCaProfiles and IStoreCertificates (or use
InMemoryCertificateStore for tests) and hand them to the CA core in
opencertserver.ca; opencertserver.data supplies the relational stores.
OpenTelemetry
CA-facing helpers that publish telemetry do so through fixed operation names only
(for example sign_certificate, revoke_certificate, get_revocation_list) and never
attach certificate requests, subjects, serial numbers, thumbprints, profile names or
exception messages. The subscribing host owns the meter/activity-source export.
Dependencies
None at the package or project level — this is the leaf of the dependency graph. It depends
only on the BCL (System.Security.Cryptography, System.Security.Cryptography.X509Certificates,
System.Text, …) and Microsoft.Extensions.* abstractions it consumes indirectly. Every
other CA project references it, not the reverse.
Related
opencertserver.ca— the core CA logic built on these contracts.docs/standards.md— the RFCs (OCSP, CRL, CAA, …) these helpers implement.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. net11.0 is compatible. |
-
net10.0
- No dependencies.
-
net11.0
- No dependencies.
NuGet packages (11)
Showing the top 5 NuGet packages that depend on opencertserver.ca.utils:
| Package | Downloads |
|---|---|
|
opencertserver.est.server
ASP.NET Core implementation of RFC 7030 certificate authority and issuer and RFC8555 client and server. |
|
|
opencertserver.ca
ASP.NET Core implementation of RFC 7030 certificate authority and issuer and RFC8555 client and server. |
|
|
opencertserver.est.client
ASP.NET Core implementation of RFC 7030 certificate authority and issuer and RFC8555 client and server. |
|
|
opencertserver.acme.server
ASP.NET Core implementation of RFC 7030 certificate authority and issuer and RFC8555 client and server. |
|
|
opencertserver.acme.aspnetclient
ASP.NET Core implementation of RFC 7030 certificate authority and issuer and RFC8555 client and server. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 5.0.0-beta-93 | 11 | 12/3/2026 |
| 5.0.0-beta-86 | 246 | 11/29/2026 |
| 5.0.0-beta-85 | 247 | 11/28/2026 |
| 5.0.0-beta-82 | 247 | 11/27/2026 |
| 5.0.0-beta-68 | 251 | 11/25/2026 |
| 5.0.0-beta-66 | 241 | 11/25/2026 |
| 4.3.0 | 205 | 11/30/2026 |
| 4.2.0 | 252 | 11/24/2026 |
| 4.1.0 | 3,471 | 11/9/2026 |
| 4.0.0 | 239 | 11/6/2026 |
| 3.9.3 | 775 | 11/2/2026 |
| 3.9.2 | 203 | 10/24/2026 |
| 3.9.1 | 2,218 | 10/17/2026 |
| 3.9.0 | 1,477 | 10/13/2026 |
| 3.8.1 | 379 | 10/11/2026 |
| 3.8.0 | 206 | 9/24/2026 |
| 3.7.1 | 188 | 9/22/2026 |
| 3.7.0 | 199 | 9/20/2026 |
| 3.6.0 | 193 | 9/16/2026 |
| 3.5.1 | 243 | 9/13/2026 |