{"id":19065502,"url":"https://github.com/menci/ssh-certdeploy","last_synced_at":"2026-03-03T18:03:46.594Z","repository":{"id":85770234,"uuid":"603494435","full_name":"Menci/ssh-certdeploy","owner":"Menci","description":"Deploy certificate to servers with SSH.","archived":false,"fork":false,"pushed_at":"2025-02-12T14:06:26.000Z","size":4,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-14T00:39:53.775Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Menci.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-02-18T17:26:11.000Z","updated_at":"2025-02-12T14:06:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"c51e1418-af26-4fc2-9105-2cf8315abe2b","html_url":"https://github.com/Menci/ssh-certdeploy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Menci/ssh-certdeploy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Menci%2Fssh-certdeploy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Menci%2Fssh-certdeploy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Menci%2Fssh-certdeploy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Menci%2Fssh-certdeploy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Menci","download_url":"https://codeload.github.com/Menci/ssh-certdeploy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Menci%2Fssh-certdeploy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30054014,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T17:46:22.538Z","status":"ssl_error","status_checked_at":"2026-03-03T17:46:22.036Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T00:50:29.046Z","updated_at":"2026-03-03T18:03:46.578Z","avatar_url":"https://github.com/Menci.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SSH CertDeploy\n\nDeploy certificate to servers with SSH.\n\n* Restrict SSH key's usage to cert deploy\n* Verify host key\n\n## Usage\n\nClone this repo to somewhere (e.g. `/opt/ssh-certdeploy`). Generate an SSH key for deploying. Add the public key to the server's `/root/.ssh/authorized_keys`:\n\n```\ncommand=\"/opt/ssh-certdeploy/receive-cert.sh example\",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty ssh-ed25519 \u003cyour-ssh-key-content....\u003e\n```\n\nThe example stands for the `config.example.sh` configuration file. It's an example that print the deployed certificate and key file to stdout. Create a new configuration file and change the command above.\n\n```bash\nCERT_FILE=\"/etc/nginx/ssl/ssl.crt\"\nKEY_FILE=\"/etc/nginx/ssl/ssl.key\"\nRELOAD_CMD=\"systemctl reload nginx\"\n```\n\nTo deploy the certificate in your automated workflow, run `send-cert.sh`:\n\n```bash\n# Get host key of the server\ngrep your-host.domain.tld ~/.ssh/known_hosts \u003e known_hosts_for_server\n\n# Put file content of `known_hosts_for_server` to your workflow's environment\n# Also put your SSH key's private key file on it\n./send-cert.sh \\\n    root@your-host.domain.tld 22 \\\n    \"$KNOWN_HOSTS_FOR_SERVER\" \\\n    deploy-key/id_ed25519_certdeploy \\\n    ssl.crt ssl.key\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmenci%2Fssh-certdeploy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmenci%2Fssh-certdeploy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmenci%2Fssh-certdeploy/lists"}