HabrAugust 12, 2026🇷🇺Translated from Russian

AS2 in .NET Without Separate Java Gateway: Native EDI Exchange Directly in Application Routes

redb.Route.AS2 brings native AS2 protocol support to .NET applications, removing the requirement for separate commercial gateways or standalone Java servers. Organizations exchanging EDI documents with major retailers, 3PL operators, banks, or healthcare providers can now process signed and encrypted S/MIME messages directly inside their existing .NET integration routes.

Previously, .NET teams faced two main options: expensive commercial AS2 gateways such as Cleo, Seeburger, or BizTalk that required separate infrastructure, or open-source Java solutions like OpenAS2 and Mendelson Community that ran as additional JVM processes with inbox directories. Both approaches kept AS2 handling outside the main application logic.

AS2 (Applicability Statement 2, RFC 4130) ensures guaranteed delivery of business documents over the internet. A payload, typically X12 or EDIFACT but also XML or JSON, is optionally compressed, signed with the sender’s private key, and encrypted with the recipient’s public certificate. The resulting S/MIME envelope travels via HTTP POST, and the receiver returns a signed MDN (Message Disposition Notification) containing a cryptographic MIC hash for non-repudiation.

The library adds as2 and as2s endpoint schemes to redb.Route. Routes are defined using simple URI strings such as as2s://partner.example.com/as2?connectionFactory=walmart for outbound and as2:/inbound/orders?host=0.0.0.0&port=4080&connectionFactory=walmart for inbound traffic. Partner configurations are stored once in an As2ConnectionFactory object that holds certificates, AS2 identifiers, signing and encryption algorithms, and MDN mode settings.

Configuration supports environment-specific values through placeholders, allowing the same compiled route to run in development, staging, and production by changing only appsettings files. Secrets such as PFX passwords are supplied via environment variables or user secrets.

Outbound routes automatically compress, sign, encrypt, and transmit documents while parsing the returned MDN. Headers such as redbAs2.mdnDisposition, redbAs2.signatureValid, and redbAs2.mdnMicMatch are placed on the exchange for conditional routing logic. Inbound routes decrypt incoming messages, verify signatures, and deliver clean business documents to the pipeline along with exchange metadata.

Asynchronous MDN handling is supported through a dedicated receive endpoint that correlates receipts by Original-Message-ID. The cryptographic layer relies on MimeKit built on Bouncy Castle, ensuring interoperability with existing AS2 implementations.

Compared with external gateways, the native connector keeps documents flowing inside a single process, enables unified observability through distributed tracing, and allows full use of enterprise integration patterns without intermediate file drops or additional monitoring systems.

Related articles

HabrOther

Deploying Self-Hosted Hysteria 2 Proxy on Debian-Based Linux VPS via Terminal

A detailed guide explains how to set up a personal Hysteria 2 proxy server on a KVM VPS running Debian or Ubuntu without any web panels. The process begins with generating ed25519 SSH keys, hardening the sshd_config file, and restricting access with ufw to only TCP port 22 and UDP port 443. Hysteria 2 is downloaded from GitHub, made executable, and configured using a TOML file that enables salamander obfuscation and a self-signed TLS certificate. A custom systemd unit ensures the service restarts on failure. The client configuration includes SHA256 pinning of the server certificate to prevent MITM attacks. The guide emphasizes manual CLI operations that apply equally to other services such as Nginx and stresses checking local laws before deployment.

AntiMalwareOther

Rostec Scales PCAT Platform Nationwide as Russia's First Industrial Marketplace

Rostec has expanded its PCAT platform to every organization within the state corporation that manufactures civilian products. Operating since 2025 and upgraded in September 2026, the platform now unites more than 180 enterprises and research organizations. Its catalog contains over 1,250 finished products along with 370 technological and manufacturing competencies. Visitors can locate not only equipment and components but also partners able to design, test, or produce required solutions. The portal receives more than 23,000 weekly visits, 60 percent of them from corporations and large enterprises. Rostec is extending the network into the regions through supply-chain agreements already signed with Krasnodar Krai and the oblasts of Tver, Tula, and Ryazan. In parallel the corporation launched the Robot Management System in November 2025 for centralized control of robots, sensors, and related IT services.

AntiMalwareOther

Kate Mobile Loses VK API Access After New Request Limits Exhaust Quota in 1.5 Days

Popular third-party Android client Kate Mobile has been cut off from VK services following the introduction of strict monthly API request caps. VK implemented the new limits on September 7, offering verified partners up to 100 million requests per month while requiring payment for additional access by third-party services. Kate Mobile developers had requested pricing details in advance but received no response from VK. Calculations showed that the app's real user base would consume the entire 100-million-request allowance in roughly 36 hours, with the messages.send method alone generating twice the allowed volume. Caching optimizations cannot mitigate the issue because message sending cannot be cached. Developers view the change as an effort to eliminate alternative clients rather than a genuine monetization strategy. Users expressed disappointment, praising the app's long-term support and criticizing the official VK client for excessive features and advertising.

AntiMalwareOther

Russian AI Research Ranks High in Global Science but Struggles with Commercialization

Russia has secured third place among BRICS nations and twentieth worldwide in the number of scientific papers presented at ten leading international conferences on machine learning and artificial intelligence. According to a study by the Scientometric Center of HSE University, Russian organizations contributed 560 papers between 2020 and 2025 that received over 12,300 citations. The average international citation rate reached 3.59, surpassing India despite fewer total publications. Russian strengths are most evident in the mathematics of machine learning, optimization, and formal concept analysis, with notable results also in computer vision and speech technologies. More than 40 percent of domestic publications involve business participation, led by Yandex among companies, HSE University and Skoltech among universities, and AIRI among non-profit organizations. Significant barriers remain, including shortages of computing power, limited access to high-quality data, and weak transfer of research into commercial products, particularly in natural language processing, AI agents, and infrastructure technologies. The Ministry of Digital Development has announced plans to stimulate demand for domestic AI solutions, expand computing infrastructure, improve regulation, and accelerate the implementation of scientific developments.