Skip to content

curtismitchell/MySSL

Repository files navigation

README

Description

MySSL is a .NET library for creating self-signed certificates. It is useful in situations where you would like to serve a local web application over SSL.

Installation

Using Nuget

Install-Package MySSL

Usage

Creating a self-signed SSL certificate

  1. Create a certificate authority
var authority = new CertificateAuthority("MyAuthority").ToX509Certificate();
  1. Create an SSL certificate from the authority for localhost
var sslCert = authority.CreateSsl(); 
  1. Install the certificates
var certStore = new CertificateStore();
certStore.SaveAuthority(authority);
certStore.SaveSsl(sslCert);

Removing an Authority and SSL Certificate(s)

var certStore = new CertificateStore();
certStore.Remove("MyAuthority"); // MyAuthority is the name of the authority

About

Create self-signed certificates easily in .NET

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages