{"id":21228352,"url":"https://github.com/akkupy/self_signed_ssl_cerificate","last_synced_at":"2026-01-03T03:07:08.268Z","repository":{"id":153935618,"uuid":"559159805","full_name":"akkupy/Self_Signed_SSL_Cerificate","owner":"akkupy","description":"Method to generate a Self Signed SSL Certificate","archived":false,"fork":false,"pushed_at":"2023-05-29T03:45:26.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-15T01:46:28.862Z","etag":null,"topics":["certificate","https","letsencrypt","localhost","openssl","self-hosted","self-signed","self-signed-certificate","ssl","tls"],"latest_commit_sha":null,"homepage":"","language":null,"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/akkupy.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}},"created_at":"2022-10-29T08:41:45.000Z","updated_at":"2023-12-04T21:35:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"f5640031-0a21-464b-8d3c-84605578eaeb","html_url":"https://github.com/akkupy/Self_Signed_SSL_Cerificate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/akkupy/Self_Signed_SSL_Cerificate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akkupy%2FSelf_Signed_SSL_Cerificate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akkupy%2FSelf_Signed_SSL_Cerificate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akkupy%2FSelf_Signed_SSL_Cerificate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akkupy%2FSelf_Signed_SSL_Cerificate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akkupy","download_url":"https://codeload.github.com/akkupy/Self_Signed_SSL_Cerificate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akkupy%2FSelf_Signed_SSL_Cerificate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28183022,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2026-01-03T02:00:06.471Z","response_time":75,"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":["certificate","https","letsencrypt","localhost","openssl","self-hosted","self-signed","self-signed-certificate","ssl","tls"],"created_at":"2024-11-20T23:18:09.777Z","updated_at":"2026-01-03T03:07:08.215Z","avatar_url":"https://github.com/akkupy.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Self Signed SSL Cerificate\n\n## Private CA and self signed certs that work with Chrome\n\n:warning: :poop: :warning: This method is for testing and development only. The vast majority of users should not use this method, as it requires loading a cert on each of your devices, which is both error-prone and requires future maintenance. Instead, focus your energy on obtaining real certs via [Let's Encrypt](https://letsencrypt.org/getting-started/). This can even work if your vaultwarden instance is not on the public Internet ([[example|Running-a-private-vaultwarden-instance-with-Let's-Encrypt-certs]]).\n\n:skull_and_crossbones: :skull_and_crossbones: :skull_and_crossbones: This method is not supported. Please do not open GitHub issues or post on the discussion forums asking about how to get this to work.\n\n---\n\nTo get docker based websites working properly with self-signed certificates, Chrome needs the certificate to include the domain name in the alternative name field of the certificate.\n\nCreate a CA key (your own little on-premise Certificate Authority):\n```\nopenssl genpkey -algorithm RSA -aes128 -out private-ca.key -outform PEM -pkeyopt rsa_keygen_bits:2048\n```\n\nNote: instead of `-aes128` you could also use the older `-des3`.\n\nCreate a CA certificate:\n```\nopenssl req -x509 -new -nodes -sha256 -days 3650 -key private-ca.key -out self-signed-ca-cert.crt\n```\n\nNote: the `-nodes` argument prevents setting a pass-phrase for the private key (key pair) in a test/safe environment, otherwise you'll have to input the pass-phrase every time you start/restart the server.\n\nNOTE: change 'website' to desired website name.\n\nCreate a website key:\n```\nopenssl genpkey -algorithm RSA -out website.key -outform PEM -pkeyopt rsa_keygen_bits:2048\n```\n\nCreate the website certificate request file:\n```\nopenssl req -new -key website.key -out website.csr\n```\n\nCreate a text file `website.ext` with the following content, change the domain names to your setup.\n```\nauthorityKeyIdentifier=keyid,issuer\nbasicConstraints=CA:FALSE\nkeyUsage = digitalSignature, nonRepudiation, keyEncipherment, dataEncipherment\nextendedKeyUsage = serverAuth\nsubjectAltName = @alt_names\n\n[alt_names]\nDNS.1 = website.local\nDNS.2 = www.website.local\n```\n\n\nCreate the website certificate, signed from the root CA:\n\n```\nopenssl x509 -req -in website.csr -CA self-signed-ca-cert.crt -CAkey private-ca.key -CAcreateserial -out website.crt -days 365 -sha256 -extfile website.ext\n```\nNote: As of April 2019 iOS 13+ and macOS 15+, the server certificate can not have an expiry \u003e 825 and must include ExtendedKeyUsage extension https://support.apple.com/en-us/HT210176 \n \n### Add the root certificate and the website certificate to client computers.\n\nAdd the self-signed-ca-cert.crt generated to client web browsers.\n\nAdd website.crt,website.key to corresponding website or proxy manager.\n\n\n\nFor reference, [see here](https://deliciousbrains.com/ssl-certificate-authority-for-local-https-development/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakkupy%2Fself_signed_ssl_cerificate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakkupy%2Fself_signed_ssl_cerificate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakkupy%2Fself_signed_ssl_cerificate/lists"}