villajo commented on a change in pull request #3122: Add Traffic Vault steps for Self Signed SSL URL: https://github.com/apache/trafficcontrol/pull/3122#discussion_r242221902
########## File path: docs/source/admin/traffic_vault.rst ########## @@ -29,6 +29,28 @@ Configuring Traffic Vault ========================= The following steps were taken to configure Riak in our environments. + +Self Signed Certificate configuration +------------------------------------- +Below shows how to create self signed certs for Trafficvault. + +Note: Self Signed Certificates are not recommended for production use. Intended for dev or learning purposes only. Modify subject as necessary. + + ``cd ~`` + ``mkdir certs`` + ``cd certs`` + ``openssl genrsa -out ca-bundle.key 2048`` + ``openssl req -new -key ca-bundle.key -out ca-bundle.csr -subj "/C=US/ST=CO/L=DEN/O=somecompany/OU=CDN/CN=somecompany.net/[email protected]"`` + ``openssl x509 -req -days 365 -in ca-bundle.csr -signkey ca-bundle.key -out ca-bundle.crt`` + ``openssl genrsa -out server.key 2048`` + ``openssl req -new -key server.key -out server.csr -subj "/C=US/ST=CO/L=DEN/O=somecompany/OU=CDN/CN=somecompany.net/[email protected]"`` + ``openssl x509 -req -days 365 -in server.csr -CA ca-bundle.crt -CAkey ca-bundle.key -CAcreateserial -out server.crt`` + ``mkdir /etc/riak/certs`` + ``mv -f server.crt /etc/riak/certs/.`` + ``mv -f server.key /etc/riak/certs/.`` + ``mv -f ca-bundle.crt /etc/pki/tls/certs/.`` + Review comment: Certainly! I can do that.. Would this be more of what we're looking for? ```Self Signed Certificate configuration ------------------------------------- .. note:: Self Signed Certificates are not recommended for production use. Intended for dev or learning purposes only. Modify subject as necessary. code-block:: shell :caption: Self-Signed Certificate Configuration cd ~ mkdir certs cd certs openssl genrsa -out ca-bundle.key 2048 openssl req -new -key ca-bundle.key -out ca-bundle.csr -subj "/C=US/ST=CO/L=DEN/O=somecompany/OU=CDN/CN=somecompany.net/[email protected]" openssl x509 -req -days 365 -in ca-bundle.csr -signkey ca-bundle.key -out ca-bundle.crt openssl genrsa -out server.key 2048 openssl req -new -key server.key -out server.csr -subj "/C=US/ST=CO/L=DEN/O=somecompany/OU=CDN/CN=somecompany.net/[email protected]" openssl x509 -req -days 365 -in server.csr -CA ca-bundle.crt -CAkey ca-bundle.key -CAcreateserial -out server.crt mkdir /etc/riak/certs mv -f server.crt /etc/riak/certs/. mv -f server.key /etc/riak/certs/. mv -f ca-bundle.crt /etc/pki/tls/certs/. ``` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
