Skip to content

Examples for generating and storing an RSA key pair and a self-signed x509 certificate (RFC 5980), in C and Go

License

Notifications You must be signed in to change notification settings

San7o/x509-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

x509-examples
=============

This repository contains two examples for generating and storing an
RSA key pair and a self-signed x509 certificate (RFC 5980).

- generate.c: example in C using openssl (3+) and libcrypto with RSA
- generate.go: example using Go standard library with RSA
- generate_ecdsa.go: example using Go standard library with ecdsa

Author:   Giovanni Santini
Mail:     giovanni.santini@proton.me
License:  MIT


Usage
-----

C example:

   make
   make run

Go examples:

   make go
   make go-ecdsa

Both:

   make info # parse the generated certificate
   make clean

Shell using the openssl cli:

   ./generate.sh


Links
-----

- openssl: https://github.com/openssl/openssl/
- x509:    https://www.rfc-editor.org/rfc/rfc5280

About

Examples for generating and storing an RSA key pair and a self-signed x509 certificate (RFC 5980), in C and Go

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published