High-performance, pure Java implementation of the ODETTE File Transfer Protocol 2.0 (OFTP2, RFC 5024) over TLS. Designed with zero third-party dependencies for seamless integration with automotive, logistics, and retail EDI workflows. Native CLI wrappers for Linux, macOS, and Windows on Java 21 or higher.
# 1. Interrogate target OFTP2 partner capabilities
./oftp2 hello
-H oftp2.partner.com
-p 6619 \
-c O0013CLIENT001
-a both
-P SECRET
--> TLS Handshake established on port 6619 (TLS_AES_256_GCM_SHA384)
--> Remote Odette ID: O0013SERVER001 | Level: OFTP 2.0 (RFC 5024)
--> Capabilities: Send/Receive | Buffer: 4096 | ZLIB Compression: YES
[SUCCESS] Peer interrogation complete. Ready for file transfers.
# 2. Store Trading Partner profile and send EDI file
./oftp2 config
--tp PARTNER_ORDERS
-H oftp2.partner.com
-n ORDERS_DSN
-F fixed
-l 128
./oftp2 put
--tp PARTNER_ORDERS
-f ./orders.edi
[PUT] File delivered. Received verified signed EERP receipt in-session.
Built strictly to RFC 5024 specifications with zero third-party dependencies, Polonum OFTP2 provides enterprise-grade, high-throughput communication for automotive (ODETTE, VDA), logistics, and manufacturing EDI networks.
End-to-end transport encryption over default OFTP2 port 6619 with mutual certificate authentication.
--ca-cert, --cert, --key)-k, --insecure)hello)Probe target OFTP2 servers to discover capabilities, supported cipher suites, buffer sizes, and server Odette IDs.
SSIDSDEB) & credit window (SSIDCRED)SSIDCMPR) & restart support (SSIDREST)SSIDAUTH)Cryptographic challenge-response authentication supporting modern Elliptic Curve and classic RSA envelopes.
password: Simple OFTP password check (SSIDPSWD)challenge: Full 20-byte cryptographic challenge-response (AUCH / AURP / SECD)KeyTransRecipientInfo & RFC 5753 ECDH KeyAgreeRecipientInfoboth: Multi-factor password & cryptographic challengeput)Zero listening daemon required! Transmits files with complete subrecord framing and credit flow control.
unstructured ('U'): Binary file streams (default)fixed ('F'): Fixed-length record files with -l length & EOR framingvariable ('V'): Variable-length records with 2-byte CMS headerstext ('T'): Normalized CR/LF text file streams-d, --destination-id) and Originator (--originator-id)--tp)Organize multiple partner connections and dataset formats easily inside oftp2.properties.
--tp <tag>) storing connection, auth, certs, and formatsdefault.clientId) makes -c optionaloftp2 config --tp <tag> [options]ack & nack)End-to-End Response with non-repudiation cryptographic CMS signatures (SFIDSIGN).
ack -f <file.oftp> or --all)nack --reason <01-99> --reason-text <msg>)<queue>/inbound/*.received)<queue>/outbound/*.pending)No complex background server daemon required. Integrate directly with your existing EDI translator (OpenText, Sterling, Seeburger, custom scripts) via simple CLI invocations or Java API.
Generates EDIFACT, ANSI X12, or VDA payloads
Executes oftp2 put --tp <tag> with TLS & persistent queue
OFTP2 Server receives data & issues EERP receipt
Receives .oftp files & triggers EDI ingestion
Cross-platform command-line tools for Linux, macOS, and Windows with comprehensive command options.
# Interrogate remote OFTP2 server SSID response and TLS parameters ./oftp2 hello \ -H oftp2.tradingpartner.com \ -p 6619 \ -c O0013MYCLIENT \ -a both \ -P SECRET \ --ca-cert /path/to/server-ca.pem \ --cert /path/to/client-cert.pem \ --key /path/to/client-key.pem
# 1. Unstructured Binary File ('U', default)
./oftp2 put -H oftp2.example.com -c O0013MYCLIENT -f ./desadv.edi -n DESADV001
# 2. Fixed-Length Records ('F', 128 bytes per record with EOR subrecord framing)
./oftp2 put -H oftp2.example.com -c O0013MYCLIENT -f ./orders.txt -n ORDERS_DSN -F fixed -l 128
# 3. Variable-Length Records ('V', auto-detects or sets max length with CMS headers)
./oftp2 put -H oftp2.example.com -c O0013MYCLIENT -f ./invoices.txt -n INVOIC_DSN -F variable
# 4. Text File ('T', normalized to CR/LF)
./oftp2 put -H oftp2.example.com -c O0013MYCLIENT -f ./catalog.csv -n CATALOG_DSN -F text
# Receives pending virtual files into -o directory and syncs outbound pending receipts ./oftp2 get \ -H oftp2.tradingpartner.com \ -p 6619 \ -c O0013MYCLIENT \ -a both \ -P SECRET \ -o ./inbox \ -q ./.oftp2-queue
# Positively acknowledge (EERP) a specific received file: ./oftp2 ack -H oftp2.example.com -c O0013MYCLIENT -f ORDERS001.20261127.1200000001.oftp # Or positively acknowledge ALL received files in the Inbound Queue: ./oftp2 ack -H oftp2.example.com -c O0013MYCLIENT --all
# Negatively acknowledge (NERP) a file rejected by your EDI translator: ./oftp2 nack -H oftp2.example.com -c O0013MYCLIENT \ -f INVOIC002.20261127.1200000002.oftp \ --reason 21 \ --reason-text "File validation failed: Missing UNH segment"
# Store default Client Odette ID in ./oftp2.properties: ./oftp2 config --default-client-id O0013CLIENT001 # Save Trading Partner profile for ORDERS: ./oftp2 config --tp PARTNER_ORDERS -H oftp2.example.com -p 6619 \ -a both -P MYPASSWD --ca-cert server-ca.pem \ -d O0013PARTNER_ORD -n ORDERS_DSN -F fixed -l 128 # Execute transfers simply referencing the stored Trading Partner profile: ./oftp2 put --tp PARTNER_ORDERS -f ./batch1.txt ./oftp2 get --tp PARTNER_ORDERS
# Verify and display active cryptographic license details & system binding: ./oftp2 license # Verify a specific external license file: ./oftp2 license -L /path/to/oftp2.lic
# Inspect local persistent queues for pending outbound files and unacknowledged inbound files: ./oftp2 queue -q ./.oftp2-queue
// Embed directly into your Java 21+ Spring Boot, Quarkus, or microservice
import com.polonum.oftp2.client.Oftp2Client;
import com.polonum.oftp2.config.Oftp2Config;
import com.polonum.oftp2.model.*;
Oftp2Config config = new Oftp2Config.Builder()
.host("oftp2.tradingpartner.com")
.port(6619)
.clientId("O0013MYCLIENT")
.authMode(AuthMode.BOTH)
.password("SECRET")
.caCert(Path.of("server-ca.pem"))
.clientCert(Path.of("client-cert.pem"), Path.of("client-key.pem"))
.queueDirectory(Path.of("./.oftp2-queue"))
.build();
Oftp2Client client = new Oftp2Client(config);
TransferResult result = client.put(Path.of("./desadv.edi"), "DESADV001", Duration.ofSeconds(30));
System.out.println("Status: " + result.getStatus());
Commercial licenses are cryptographically signed with RSA-2048 and node-locked to your production server hostname and email address.
Full-featured trial to test with your trading partners.
Ideal for single-server production EDI gateways.
For high-volume, multi-server active/standby clusters.
Download the demo client enabled for one month. The cryptographically signed oftp2.lic file will be generated and emailed to you, working on any Java 21 or higher system.
Commercial licenses are cryptographically locked to your server's hostname and email address for production EDI operations.
Common questions regarding Java 21+ runtime compatibility, zero dependencies, licensing activation, and EDI configuration.
No! Polonum OFTP2 is a 100% zero-dependency Java implementation built strictly with standard Java SE libraries (javax.net.ssl, java.security). There are no external third-party JARs to download or manage.
Polonum OFTP2 requires Java 21 or higher (OpenJDK, Eclipse Temurin, Oracle JDK). Native execution wrappers are included for Linux & macOS (oftp2) and Windows (oftp2.bat).
The client searches in the following order: (1) CLI flag -L, --license <path>, (2) JVM property -Doftp2.license, (3) Environment variable OFTP2_LICENSE, (4) Local directory ./oftp2.lic, and (5) Bundled JAR resource.
Trading Partner profiles allow you to save full connection, authentication, certificates, dataset names (--dsn), and formats (-F fixed/variable/text/unstructured) in oftp2.properties. Multiple profiles can target the same host with different dataset configurations.