An attempt to automate SSL certs management
- Install all dependencies:
bundle install
- Copy config:
cp config/application.yml.sample config/application.yml
- Edit file
config/application.yml
with relevant config - Run migrations:
rake db:create db:migrate
- Start server:
rails server
- Creating SSL certs for a domain:
- Request:
curl -X POST http://kingsly.host/v1/cert_bundles \
-H 'Content-Type: application/json' \
-d '{
"top_level_domain":"your-domain.com",
"sub_domain": "your-sub-domain"
}'
- Response:
'{
"private_key":"-----BEGIN RSA PRIVATE KEY-----\nMI...\n-----END RSA PRIVATE KEY-----\n",
"full_chain":"-----BEGIN CERTIFICATE-----\nMIIG...\n-----END RSA PRIVATE KEY-----\n"
}'
- check for ACME account creation without email id (maybe initialize account only once?)