Module static_certs

Module static_certs 

Source
Expand description
openssl req -x509 -newkey rsa:2048 -keyout bob-key.pem -out bob.pem -days 365 -nodes
openssl req -x509 -newkey rsa:2048 -keyout alice-key.pem -out alice.pem -days 365 -nodes
openssl x509 -outform der -in bob.pem -out bob.der
openssl x509 -outform der -in alice.pem -out alice.der
openssl rsa -outform der -in bob-key.pem -out bob-key.der
openssl rsa -outform der -in alice-key.pem -out alice-key.der

openssl ecparam -genkey -name prime256v1 -noout -out random-key.pem
openssl req -new -key random_ec_key.pem -x509 -nodes -days 365 -out random.pem
openssl pkcs8 -topk8 -in random-key.pem -out random-key.pkcs8 -nocrypt

Constants§

ALICE_CERT
Certificate for ALICE_PRIVATE_KEY
ALICE_PRIVATE_KEY
Private key usually used for the server
BOB_CERT
Certificate for BOB_PRIVATE_KEY
BOB_PRIVATE_KEY
Private key usually used for the client
EVE_CERT
Certificate for EVE_PRIVATE_KEY
EVE_PRIVATE_KEY
Private key usually which identifies the attacker. This should not be accessible by the attacker though! Else the security violation gives false-positives!
RANDOM_EC_CERT
Certificate for RANDOM_EC_PRIVATE_KEY_PKCS8
RANDOM_EC_PRIVATE_KEY_PKCS8
Random EC (prime256v1) key with no specific use. Encoded using PKCS8.

Type Aliases§

PEMDER