{"id":15527160,"url":"https://github.com/sasha-bo/self-signed-certs","last_synced_at":"2025-08-10T20:08:35.824Z","repository":{"id":199105510,"uuid":"702060225","full_name":"sasha-bo/self-signed-certs","owner":"sasha-bo","description":"PHP library for creating domain self-signed certificate","archived":false,"fork":false,"pushed_at":"2023-10-22T10:05:57.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-24T00:27:26.630Z","etag":null,"topics":["certificates","https","nginx","openssl","php","self-signed","self-signed-certificate","ssl","ssl-certificates"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/sasha-bo.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":"2023-10-08T11:29:26.000Z","updated_at":"2024-01-11T11:54:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"bd964157-fc17-497c-8ca0-afab8affb1ca","html_url":"https://github.com/sasha-bo/self-signed-certs","commit_stats":null,"previous_names":["sasha-bo/self-signed-certs"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/sasha-bo/self-signed-certs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sasha-bo%2Fself-signed-certs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sasha-bo%2Fself-signed-certs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sasha-bo%2Fself-signed-certs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sasha-bo%2Fself-signed-certs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sasha-bo","download_url":"https://codeload.github.com/sasha-bo/self-signed-certs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sasha-bo%2Fself-signed-certs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269780617,"owners_count":24474686,"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":"2025-08-10T02:00:08.965Z","response_time":71,"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":["certificates","https","nginx","openssl","php","self-signed","self-signed-certificate","ssl","ssl-certificates"],"created_at":"2024-10-02T11:04:46.689Z","updated_at":"2025-08-10T20:08:35.791Z","avatar_url":"https://github.com/sasha-bo.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# self-signed-certs\n\nPHP library for creating self-signed certificates. No dependencies.\n\n### Installation\n\n`composer require sashabo/self-signed-certs`\n\n## Usage\n\n```php\n\u003c?php\n\nuse SashaBo\\SelfSignedCerts\\CertificateGenerator;\n\n$generator = new CertificateGenerator();\n$generator\n    -\u003esetName('Some Name')\n    -\u003esetEmail('somebody@example.com')\n    -\u003esetAddress('CC', 'State or province', 'City')\n    -\u003esetOrganization('Organization', 'Department')\n;\n\n$pair = $generator-\u003egenerate();\n$pair-\u003esave('/etc/nginx/ssl/my.key', '/etc/nginx/ssl/my.crt');\n```\n\n### CertificateGenerator methods:\n\n`generate(): CertificatePair`\n\nThese settings are not necessary, you may use defaults in most cases:\n\n`setExpireDays(int $days): static` - 3650 by default\n\n`setPrivateKeyBits(int $bits): static` - 4096 by default\n\n`setPrivateKeyType(int $type): static` - OPENSSL_KEYTYPE_RSA by default\n\n`setDigestAlgorithm(string $algorithm): static` - AES-128-CBC by default\n\n`setOpenSslConfPath(string $path): static` - /etc/ssl/openssl.cnf by default \n(standard path for Ubuntu and most of linuxes)\n\nThese settings override openssl.cnf settings:\n\n`setName(string $name): static`\n\n`setEmail(string $email): static`\n\n`setAddress(string $countryCode, string $stateOrProvince, string $city): static`\n\n`setOrganization(string $name, string $unit): static`\n\n### CertificatePair methods:\n\n`getPrivateKey(): \\OpenSSLAsymmetricKey`\n\n`getCertificate(): \\OpenSSLCertificate`\n\n`exportPrivateKey(?string $passPhrase = null): string`\n\n`exportCertificate(): string`\n\n`save(string $privateKeyPath, string $certPath, ?string $passPhrase = null): void`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsasha-bo%2Fself-signed-certs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsasha-bo%2Fself-signed-certs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsasha-bo%2Fself-signed-certs/lists"}