Brandon Philips b3704a7119 fix(fixtures/ca): make the certificates work há 12 anos atrás
..
broken d9a8ca1a66 feat(fixtures/ca): Initial commit há 12 anos atrás
.gitattributes d9a8ca1a66 feat(fixtures/ca): Initial commit há 12 anos atrás
README b3704a7119 fix(fixtures/ca): make the certificates work há 12 anos atrás
ca.crt b3704a7119 fix(fixtures/ca): make the certificates work há 12 anos atrás
ca.key b3704a7119 fix(fixtures/ca): make the certificates work há 12 anos atrás
openssl.cnf 9f14e75360 fix(fixtures/ca): generate with clientAuth and serverAuth há 12 anos atrás
server-chain.pem b3704a7119 fix(fixtures/ca): make the certificates work há 12 anos atrás
server.crt b3704a7119 fix(fixtures/ca): make the certificates work há 12 anos atrás
server.csr b3704a7119 fix(fixtures/ca): make the certificates work há 12 anos atrás
server.key b3704a7119 fix(fixtures/ca): make the certificates work há 12 anos atrás
server.key.insecure b3704a7119 fix(fixtures/ca): make the certificates work há 12 anos atrás
server2.crt b3704a7119 fix(fixtures/ca): make the certificates work há 12 anos atrás
server2.csr b3704a7119 fix(fixtures/ca): make the certificates work há 12 anos atrás
server2.key b3704a7119 fix(fixtures/ca): make the certificates work há 12 anos atrás
server2.key.insecure b3704a7119 fix(fixtures/ca): make the certificates work há 12 anos atrás

README

Testing x509 certs for etcd

The passphrases for the keys are `asdf`.

# Make the CA cert
openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt -config openssl.cnf -extensions v3_ca

# Make server cert and signing request
openssl genrsa -des3 -out server.key 4096
openssl req -new -key server.key -out server.csr -config openssl.cnf

# Sign the server csr and generate a crt
openssl x509 -req -days 365 -in server.csr -CA ca.crt -CAkey ca.key -set_serial 01 -out server.crt -extfile openssl.cnf -extensions v3_req

# Output unencrypted server key
openssl rsa -in server.key -out server.key.insecure

# Output "raw" public key from server crt
openssl x509 -pubkey -noout -in server.crt > server.pub