{"id":19256961,"url":"https://github.com/sjkp/digitalpost","last_synced_at":"2026-06-15T12:31:51.949Z","repository":{"id":222967801,"uuid":"758853992","full_name":"sjkp/digitalpost","owner":"sjkp","description":null,"archived":false,"fork":false,"pushed_at":"2024-02-18T07:08:23.000Z","size":111,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-23T17:46:55.013Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sjkp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-02-17T09:20:34.000Z","updated_at":"2024-02-18T06:55:53.000Z","dependencies_parsed_at":"2024-02-19T23:15:11.485Z","dependency_job_id":null,"html_url":"https://github.com/sjkp/digitalpost","commit_stats":null,"previous_names":["sjkp/digitalpost"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sjkp/digitalpost","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjkp%2Fdigitalpost","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjkp%2Fdigitalpost/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjkp%2Fdigitalpost/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjkp%2Fdigitalpost/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sjkp","download_url":"https://codeload.github.com/sjkp/digitalpost/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjkp%2Fdigitalpost/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34363538,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-15T02:00:07.085Z","response_time":63,"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":[],"created_at":"2024-11-09T19:07:46.905Z","updated_at":"2026-06-15T12:31:51.923Z","avatar_url":"https://github.com/sjkp.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Documentation: \n[https://digitaliser.dk/Media/638336537871668450/Digital%20Post%20-%20Technical%20Integration%20v1.41.pdf](https://digitaliser.dk/Media/638416000215044812/Digital%20Post%20-%20Technical%20Integration%20v1.43.pdf)\n\nhttps://digitaliser.dk/digital-post/vejledninger/technical-integration\n\nhttps://digst.dk/it-loesninger/digital-post/vejledninger/\n\n# Administration\nhttps://admin.digitalpost.dk/ \n \n# APIs\nTest \n[https://test.digitalpost.dk/api](https://test.digitalpost.dk/api)\n\nProd\n[https://api.digitalpost.dk/](https://api.digitalpost.dk/apis/v1)\n\n\n# Source Code\nReference implementation: \nhttps://bitbucket.org/nc-dp/reference-systems-for-dotnet/src/master/\n\nMemolib:\nhttps://bitbucket.org/nc-dp/memo-lib-dot-net/src/master/ \n\n\n# Authentication\nAuthorization header is for identifiying calling system, the actual auth is the mutual tls. \n\ncurl -v \\\n--http1.1 \\\n--key \"my_foces_certificate.pkcs8\" \\\n--key-type pem \\\n--cert-type pem \\\n--cert \"my_foces_certificate.cer\" \\\n-H \"Authorization: Basic\nZTU0NWIzMzktODU0Mi00YTMwLWFlNzUtYzY3ZTRkMmE3Yjk5OjE1NjMyYThkLTQwN2MtNGMzYS1iN2IxLWFlY\nmFhNTE0ZmNhYg==\" \\\n\"https://api.test.digitalpost.dk/apis/v1/contacts/\"\n\n\n# Getting a certificate: \nhttps://erhvervsadministration.nemlog-in.dk/certificates \n\n## Converting pkcs12 to pem \n\nExtract cert and private key\n```\nopenssl pkcs12 -in path.p12 -out newfile.crt.pem -clcerts -nokeys\nopenssl pkcs12 -in path.p12 -out newfile.key.pem -nocerts -nodes\n```\nCombine into one pem (no pass)\n```\nopenssl pkcs12 -in path.p12 -out newfile.pem -nodes\n```\n\n\n# Calling prod\n\ncurl -v \\\n--http1.1 \\\n--key \"SJKPConsulting.key.pem\" \\\n--key-type pem \\\n--cert-type pem \\\n--cert \"SJKPConsulting.crt.pem\" \\\n-H \"Authorization: Basic OGVjNWMyNjEtMWZlYi00ZmIyLWJmMWItYTdmNjIxZmFmN2M2OjUxMTYwOGE1LTE4ZjQtNDFmYS1iNmM1LWNjOTM4NmUyN2MzMA==\" \\\n\"https://api.digitalpost.dk/apis/v1/contacts/\"\n\n\nResult\n```json\n{\n  \"currentPage\" : 0,\n  \"next\" : \"WyAxNjkyOTI0NTc0NDM3LCAiRmlOSFhhZ0xRUXNaTHl6Y0Y0T2szdHlkSkhCb1lrVHciIF0=\",\n  \"totalPages\" : 1,\n  \"elementsOnPage\" : 1,\n  \"totalElements\" : 1,\n  \"contacts\" : [ {\n    \"id\" : \"62e55094-66d3-4247-822b-ed57d416819b\",\n    \"version\" : 3,\n    \"type\" : \"COMPANY\",\n    \"transactionId\" : \"FiNHXagLQQsZLyzcF4Ok3tydJHBoYkTw\",\n    \"cvrNumber\" : \"34485771\",\n    \"mailboxSubscription\" : {\n      \"id\" : \"d1772f49-d624-480a-bd7e-7e5957397e99\",\n      \"version\" : 1,\n      \"registrationStatus\" : \"AUTOMATIC_REGISTRATION\",\n      \"publicRegistrationStatus\" : \"REGISTERED\",\n      \"startTime\" : \"2013-11-21T00:08:06.770Z\"\n    },\n    \"lastUpdated\" : \"2023-08-25T00:49:34.437Z\",\n    \"createdDate\" : \"2012-05-22T11:55:01.832Z\",\n    \"eligibleForVoluntaryRegistration\" : false,\n    \"address\" : {\n      \"@type\" : \"CompanyAddress\",\n      \"id\" : \"1ff804dc-1365-4fcd-92a6-beacd19a7f88\",\n      \"version\" : 0,\n      \"streetName\" : \"Hovedvejen\",\n      \"streetCode\" : \"437\",\n      \"postalCode\" : \"8670\",\n      \"municipalityName\" : \"SKANDERBORG\",\n      \"municipalityCode\" : \"746\",\n      \"postDistrict\" : \"Låsby\",\n      \"houseNumberFrom\" : \"17\",\n      \"careOfName\" : \"Flensted Byggeteknik\"\n    }\n  } ]\n}\n``` \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjkp%2Fdigitalpost","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsjkp%2Fdigitalpost","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjkp%2Fdigitalpost/lists"}