EDI – Communication
Swedish Customs provides the possibility to submit data electronically with TCP/IP over Internet. In order to do so the OFTP version 2 is used which is the latest version of OFTP.
OFTP 2 is adapted to communication over Internet, for example through enhanced functionality for file compression, larger file sizes and TLS session security. To communicate with Swedish Customs, it is not necessary to buy a certificate or get a permanent connection with associated infrastructure and high availability requirements. This is possible since session is initiated by the client but the encrypted connection is based on the Swedish Customs public certificate.
Change communication method
There are two options for changing method of communication. Both require an application to amend your EDI registration. Option 1 is recommended.
Option 1
Apply for changes to existing technical appendix. State on the application form: "changing communication party".
This option means:
- Unchanged sender identification and reverse routing address
- New OFTP code
- Transfers via the production environment can continue as before, while the new communication can be verified through Swedish Customs' test environment
- Communication tests will be needed before the transition of production traffic occurs. Contact Customs' IT department
- Message flow must be stopped during the transition of production traffic
- Transition must be completed within 3 months of the application
Option 2
Apply for a new technical appendix. State on the application form: "new communication party".
This option means:
- New reverse routing address
- New OFTP code
- Normal routines for testing a new technical appendix will be followed
- Transition to the new solution for production traffic is made at an optional time after approved tests . If the company has subscription messages you must inform Customs beforehand about a specific date for transferring these to the new technical appendix
When the old technical appendix is no longer in use the company should notify Customs of its removal.
Enhanced communication security
From September 15, 2021, only TLS 1.2 can be used for OFTPv2 connections to tmf01.tullverket.se:6619.
Only the following four Cipher Suites will be allowed:
- TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
- TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
- TLS_DHE_RSA_WITH_AES_128_GCM_SHA256
- TLS_DHE_RSA_WITH_AES_256_GCM_SHA384
The algorithms above are already used when connecting to Swedish Customs from the majority of the companies EDI systems.
If you are using TLS 1 or TLS 1.1 or are using TLS 1.2 with other Cipher Suites than the above mentioned, you should change this as soon as possible. You can make the change without informing Swedish Customs.
Please contact your system vendor if you have any questions regarding your communication software.
Server certificate for Swedish Customs’ OFTPv2 server
The server certificate, used to identify Swedish Customs’ OFTPv2 server, is replaced annually. The replacement is normally done during August.
More information about the replacement can be found on Swedish Customs’ server certificate
Last updated:
What is updated: Technical change