# Packages
No description provided by the author
# README
Go-ipfix Tests
Go-ipfix uses fake certificates for unit test and integration test. The fake certificates are generated manually and saved at cert.go. The developers need to renew the certificates before they expire following the steps below.
- Generate a fake CA cert and save the content in
ca-cert.pem
toFakeCACert
.openssl genrsa 2048 > ca-key.pem openssl req -new -x509 -nodes -days 1000 -key ca-key.pem > ca-cert.pem
- Generate the client certificate with RSA2048. Save the content in
client-key.pem
toFakeKey
andclient-cert.pem
toFakeCert
. Repeat this step forFakeClientKey
andFakeClientCert
.openssl req -newkey rsa:2048 -days 1000 -nodes -keyout client-key.pem > client-req.pem echo subjectAltName = IP:127.0.0.1 > extfile.cnf openssl x509 -req -in client-req.pem -days 1000 -CA ca-cert.pem -CAkey ca-key.pem -set_serial 01 > client-cert.pem -extfile extfile.cnf
- Generate the client certificate with ED25519. Save the content in
client-key.pem
toFakeKey2
andclient-cert.pem
toFakeCert2
.openssl genpkey -algorithm ed25519 -out client-key.pem openssl req -new -sha256 -key client-key.pem -out client-req.pem echo subjectAltName = IP:127.0.0.1 > extfile.cnf openssl x509 -req -in client-req.pem -days 1000 -CA ca-cert.pem -CAkey ca-key.pem -set_serial 01 > client-cert.pem -extfile extfile.cnf