RFC 5024 Certified • ODETTE 2.0 Compliant • Zero External Dependencies

Enterprise OFTP2 Secure Client & EDI Integration CLI

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.

TLS 1.3 & mTLS (Port 6619)
Pure Java 21+ (Zero Dependencies)
Zero Listener Overhead
RSA & ECDH Challenge Auth
Trading Partner Profiles (--tp)
oftp2 cli — RFC 5024 session (v1.0.0)

# 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.

Full-Featured OFTP2 for Mission-Critical Supply Chains

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.

TLS 1.3 Security & mTLS

End-to-end transport encryption over default OFTP2 port 6619 with mutual certificate authentication.

  • PEM certificates & private keys (--ca-cert, --cert, --key)
  • PKCS12 and JKS KeyStore / TrustStore integration
  • Presents client certificate during handshake, including self-signed certs
  • Test-mode trust-all verification (-k, --insecure)

Server Interrogation (hello)

Probe target OFTP2 servers to discover capabilities, supported cipher suites, buffer sizes, and server Odette IDs.

  • SSID negotiation & capability inspection (Send, Receive, Both)
  • Buffer size (SSIDSDEB) & credit window (SSIDCRED)
  • Compression flags (SSIDCMPR) & restart support (SSIDREST)
  • Challenge authentication detection (SSIDAUTH)

RSA & ECDH Authentication

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)
  • Supports RSA KeyTransRecipientInfo & RFC 5753 ECDH KeyAgreeRecipientInfo
  • both: Multi-factor password & cryptographic challenge

All 4 Virtual File Formats (put)

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 framing
  • variable ('V'): Variable-length records with 2-byte CMS headers
  • text ('T'): Normalized CR/LF text file streams
  • Destination routing (-d, --destination-id) and Originator (--originator-id)

Trading Partner Profiles (--tp)

Organize multiple partner connections and dataset formats easily inside oftp2.properties.

  • Named profiles (--tp <tag>) storing connection, auth, certs, and formats
  • Supports multiple profiles for the same host with different datasets and formats
  • Stored Default Client Odette ID (default.clientId) makes -c optional
  • Config command: oftp2 config --tp <tag> [options]

Signed Receipts (ack & nack)

End-to-End Response with non-repudiation cryptographic CMS signatures (SFIDSIGN).

  • Positive acknowledgment (ack -f <file.oftp> or --all)
  • Negative acknowledgment (nack --reason <01-99> --reason-text <msg>)
  • Persistent Inbound Queue staging (<queue>/inbound/*.received)
  • Persistent Outbound Queue matching (<queue>/outbound/*.pending)

How Polonum OFTP2 Fits Into Your Infrastructure

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.

1

EDI Translator

Generates EDIFACT, ANSI X12, or VDA payloads

→
2

Polonum OFTP2

Executes oftp2 put --tp <tag> with TLS & persistent queue

→
3

Remote Partner

OFTP2 Server receives data & issues EERP receipt

→
4

Inbound Staging

Receives .oftp files & triggers EDI ingestion

Comprehensive CLI & Java 21+ API

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());

Transparent Commercial Licensing

Commercial licenses are cryptographically signed with RSA-2048 and node-locked to your production server hostname and email address.

30-Day Evaluation

Full-featured trial to test with your trading partners.

Free / 1 month
  • 100% Full Feature Set Enabled
  • Java 21+ Compatible Runtime
  • Cryptographically Signed License
  • Standard Community Documentation
Request Free 30-Day Demo

Enterprise HA / Multi-Host

For high-volume, multi-server active/standby clusters.

$3,950 / cluster / year
  • Up to 5 Clustered Hostnames
  • Disaster Recovery & Staging Included
  • 24/7 Phone & Emergency SLA Support
  • Architecture & Certificate Consulting
Select Enterprise

Purchase Commercial License

Commercial licenses are cryptographically locked to your server's hostname and email address for production EDI operations.

Enter the system hostname (output of hostname -f) where the software will run.

Production license key & formal invoice dispatched directly to your email address.

Technical & Deployment Specifications

Common questions regarding Java 21+ runtime compatibility, zero dependencies, licensing activation, and EDI configuration.

Are there any external dependencies or JARs required?

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.

What are the system and Java requirements?

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).

Where does the client look for the license file?

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.

How do Trading Partner profiles (--tp) work?

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.