{"id":49727926,"url":"https://github.com/antari-yan/selfsigned_cert_handler","last_synced_at":"2026-05-09T05:17:15.334Z","repository":{"id":208110870,"uuid":"720838440","full_name":"Antari-yan/selfsigned_cert_handler","owner":"Antari-yan","description":"Script to create and manage one self-signed certificate","archived":false,"fork":false,"pushed_at":"2024-03-10T22:45:43.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-03-10T23:37:19.301Z","etag":null,"topics":["bash","bash-script","certificate","self-signed-certificate"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Antari-yan.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}},"created_at":"2023-11-19T18:49:33.000Z","updated_at":"2024-03-10T23:37:19.302Z","dependencies_parsed_at":"2024-01-23T04:03:22.501Z","dependency_job_id":"913f4552-9be7-472f-a8e7-35defaac066b","html_url":"https://github.com/Antari-yan/selfsigned_cert_handler","commit_stats":{"total_commits":6,"total_committers":2,"mean_commits":3.0,"dds":"0.16666666666666663","last_synced_commit":"30570a23d40a33c610538f8ebdafecd25ebdb340"},"previous_names":["antari-yan/selfsigned_cert_handler"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Antari-yan/selfsigned_cert_handler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Antari-yan%2Fselfsigned_cert_handler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Antari-yan%2Fselfsigned_cert_handler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Antari-yan%2Fselfsigned_cert_handler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Antari-yan%2Fselfsigned_cert_handler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Antari-yan","download_url":"https://codeload.github.com/Antari-yan/selfsigned_cert_handler/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Antari-yan%2Fselfsigned_cert_handler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32808015,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["bash","bash-script","certificate","self-signed-certificate"],"created_at":"2026-05-09T05:17:14.741Z","updated_at":"2026-05-09T05:17:15.327Z","avatar_url":"https://github.com/Antari-yan.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Self-signed certificate handler\nThis bash script can be use to create and manage one self-signed certificate.\n\nIt first checks if the desired certificates public and private key exist.  \nAfterwards it checks if the md5 value of both files matches.  \nLastly it checks if the certificate is expired or if a set expiration timestamp has been reached.\n\nShould any of the above checks return an undesired state a new certificate will be created.  \nTo prevent script fail issues the new certificates will be created with a `-tmp` suffix.  \nIt can be defined where the new certificate should be created and it is recommended to set it to a different directory to prevent any unintended errors.\n\nCurrently this script can't handle `private key passphrase`, `subject alt name` and different `provider` beside self-signed.  \nAlso this script can only handle one certificate.\n\nUsing a separate config file to easily reuse the same script would be a good addition in the future.\n\n## Usage\nSet the following variables to the desired value:\n* Name and path of private key\n    * GEN_SSL_CERT_PRIVATE_KEY_NAME\n    * GEN_SSL_CERT_PRIVATE_KEY_PATH\n\n* Name and path of public key\n    * GEN_SSL_CERT_PUBLIC_KEY_NAME\n    * GEN_SSL_CERT_PUBLIC_KEY_PATH\n\n* General certificate parameters\n    * GEN_SSL_CERT_COUNTRY_NAME\n    * GEN_SSL_CERT_STATE_OR_PROVINCE_NAME\n    * GEN_SSL_CERT_LOCALITY_NAME\n    * GEN_SSL_CERT_ORGANIZATION_NAME\n    * GEN_SSL_CERT_ORGANIZATIONAL_UNIT_NAME\n    * GEN_SSL_CERT_COMMON_NAME\n    * GEN_SSL_CERT_EMAIL_ADDRESS\n    * GEN_SSL_CERT_VALID_DAYS\n    * GEN_SSL_CERT_RENEWAL_DAY\n    * GEN_SSL_CERT_HASH_ALGORITHM\n\n``` bash\n# After setting the variables run the script as is:\nbash selfsigned_cert_handler.bash\n```\n\n``` bash\n# Show help:\nbash selfsigned_cert_handler.bash -h\n```\n\n``` bash\n# Force renewal:\nbash selfsigned_cert_handler.bash --force\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantari-yan%2Fselfsigned_cert_handler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantari-yan%2Fselfsigned_cert_handler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantari-yan%2Fselfsigned_cert_handler/lists"}