Skip to content

localshare-hsr/crypto_prototype

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Crypto Prototype

Simple crypto prototype, generates X.509 certificate an private key with ECC, stores data in key store and loads data from persistent key store (if available). Also a small 'HTTP Server' is listening on port 8640.

Key Store

We use a PKCS12 standard key store to save key material.

Useful commands to extract certificate and or private key from a .p12 file:

Show content of .p12 file: openssl pkcs12 -in keystore.p12 -nodes -passin pass:"foobar"

Extract private key from .p12 file: openssl pkcs12 -in keystore.p12 -nodes -passin pass:"foobar" -nocerts -out privatekey.pem

Extract certificate from .p12 fileopenssl pkcs12 -in keystore.p12 -nodes -passin pass:"foobar" -clcerts -nokeys -out publiccert.pem

Running a local www server

openssl s_server -key privatekey.pem -cert publiccert.pem -accept 1337 -www

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages