Skip to main content

CSR Proxy

CSR Proxy is a simple service to sign the clients' CSR via the ACME server.

PyPi version Python Versions License Build Sponsors Ruff

Documentation: https://docs.gufolabs.com/csr_proxy/

Source Code: https://github.com/gufolabs/csr_proxy/


The self-signed certificates are no longer sufficient, posing challenges in distributing trial and evaluation versions of software with web interfaces. To address this, software publishers typically consider the following options:

  1. Delegate Certificate Signing to the User:

    • Pros: Gives control to advanced users.
    • Cons: Requires user knowledge of PKI, complex infrastructure, or additional expenses.
  2. Generate Self-Signed Certificate with mkcert:

    • Pros: Suitable for developers.
    • Cons: Compromises system security, demands browser reloading, and adds complexity.
  3. Order a Certificate from Global CA:

    • Pros: Secure, but expensive.
    • Cons: Violates TLS security principles by exposing the private key.
  4. Use localhost.direct Certificate or Similar Services:

    • Pros: Similar to the previous approach.
    • Cons: Public exposure of the public key.
  5. Order Separate Certificates for Each User:

    • Pros: Secure but time-consuming and costly.
    • Cons: Mutual trust issue; the publisher generates and knows the client's private key.
  6. Generate Client's Key and Certificate via ACME Server:

    • Pros: Less expensive.
    • Cons: Mutual trust issue persists; the publisher generates and knows the client's private key.
  7. Negotiate with ACME Server from Client's Site:

    • Pros: Reliable, but requires additional infrastructure setup.
    • Cons: Suitable for advanced users, not the default choice.

Considering the need for mutual trust and simplicity in software evaluation, the publisher should generate a private certificate on the user's side without touching it. The published also needs to maintain all necessary infrastructure for the certificate signing. Enter the CSR Proxy.

CSR Proxy Overview

The CSR Proxy is a straightforward service executed on the publisher's side. It:

  • Receives the Certificate Signing Request (CSR) from the client.
  • Proxies the CSR to the ACME server for signing.
  • Handles ACME challenge fulfillment, shielding the end user from complexity.

The sequence diagram is shown below. The primal parties are:

  • Client: An entity demanding the certificate signing.

  • CSR Proxy: The certificate signing service, consists of two parts:

    • API: The client-facing API, performing ACME interaction on behalf of the client. Also performs DNS provisioning.
    • DNS: PowerDNS service, providing a provisioning interface to API and serving DNS requests.
  • ACME: Any RFC-8555 compatible ACME server, like Let's Encrypt.

sequenceDiagram
    participant Client
    box CSR Proxy
    participant API
    participant DNS
    end
    participant ACME
    Client->>Client: Generate private RSA key
    Client->>Client: Create CSR
    Client->>API: CSR sign request
    activate API
    API->>ACME: New order
    activate ACME
    ACME->>API: Order authorization
    deactivate ACME
    API->>ACME: Get challenges
    activate ACME
    ACME->>API: Challenges
    deactivate ACME
    API->>DNS: Put _acme-challenges RR
    activate DNS
    DNS->>API: RR is ready
    deactivate DNS
    API->>ACME: Respond dns-01 challenge
    activate ACME
    ACME->>API: Status
    ACME->>DNS: Query _acme-challenge RR
    activate DNS
    DNS->>ACME: _acme-challenge RR
    deactivate DNS
    API->>ACME: Check autorization
    ACME->>API: Authorization status
    API->>ACME: Finalize
    ACME->>API: Order status    
    deactivate ACME
    API->>Client: Signed certificate
    deactivate API    

On Gufo Stack

This product is a part of Gufo Stack - the collaborative effort led by Gufo Labs. Our goal is to create a robust and flexible set of tools to create network management software and automate routine administration tasks.

To do this, we extract the key technologies that have proven themselves in the NOC and bring them as separate packages. Then we work on API, performance tuning, documentation, and testing. The NOC uses the final result as the external dependencies.

Gufo Stack makes the NOC better, and this is our primary task. But other products can benefit from Gufo Stack too. So we believe that our effort will make the other network management products better.

Metadata

Release files for csr-proxy 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for csr-proxy 0.1.0
File Size Uploaded
csr_proxy-0.1.0.tar.gz 15.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for csr-proxy 0.1.0
File Interpreter ABI Platform
csr_proxy-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 25.5 kB

Release files / csr_proxy-0.1.0.tar.gz

Download URL csr_proxy-0.1.0.tar.gz
Size 15.2 kB
Tags Source
SHA-256 checksum
How to use checksums
de21a3efad6e28e07e34e9efb4317fc45af3d737739cd1ba95a24c93ac70c330
BLAKE2b-256 checksum
How to use checksums
67128abad6f0564354eb35552960e5da0db07805fb6106f949dce5d6d096d71f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release files / csr_proxy-0.1.0-py3-none-any.whl

Download URL csr_proxy-0.1.0-py3-none-any.whl
Size 10.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b487f46f610b91dfd6dad10c330653a1b03585e1a17b8399df11da762118b4e2
BLAKE2b-256 checksum
How to use checksums
e854f0e8e4a619511adfdc7b6c78ae8d07b15242f859dc0007187e99a6bb58e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page