<< Back to part 1 <<
3. Create user (Alice) certificate for authentication :
Generate Alice private key# openssl genrsa -out alice.key 2048
Generate Alice certificate request
Notice : the common name (CN) should match the username = alice
# openssl req -out alice.req -key alice.key -new -days 365
Sign Alice request by using rootCA
# openssl x509 -in alice.req -out alice.cert -days 365 -req -CA rootCA.cert -CAkey rootCA.key -CAcreateserial