{"title":"SSL","description":"","section":"guides","version":"v1.5","path":"guides/ssl","canonical_url":"https://amberframework.org/docs/v1.5/guides/ssl","markdown_url":"https://amberframework.org/docs/v1.5/guides/ssl.md","inherited":true,"content_markdown":"# SSL\n\nFor development use self-signed keys and edit ```config/environments/development.yml```\n\n```\nssl_key_file: example.key\nssl_cert_file: example.crt\n```\n\nFor production, please use CertBot (https://certbot.eff.org) and edit ```config/environments/production.yml```\n\nIt is possible to set this in your Amber configure block as well, in ```config/application.cr```\n\n```\nAmber::Server.configure do |setting|\n  # Server options\n  setting.name = \"Example web application.\"\n  setting.port = 3000 # Port you wish your app to run\n  setting.host = \"0.0.0.0\"\n  setting.ssl_key_file = \"example.key\"\n  setting.ssl_cert_file = \"example.crt\"\nend\n```"}