Payment files to Danske Bank automatically
Danske Bank receives ISO 20022 payment files over SFTP. Payment files have to be encrypted with OpenPGP. This guide takes you from the agreement to your first real payment.
Last checkedIn brief#
| Danske Bank | |
|---|---|
| Channel | SFTP, with SSH-2 login keys. Largest file 500 MB. |
| Protection | OpenPGP encryption is required for payment files. The bank's current public key expires on 17 December 2026. |
| Format | ISO 20022 XML according to Danske Bank's version. |
| Reports | camt.053 and camt.054, ordered with a form. |
| Test tools | Validation tool for pain.001.001.03. |
| Agreement | District/Business eBanking agreement. |
The agreement#
The SFTP channel requires a District/Business eBanking agreement with Danske Bank.
Contact the bank and ask for:
- the SFTP channel on your agreement for the accounts that will pay and report
- the payment services you need, such as supplier payments and salaries
- camt.053 or camt.054, which are ordered with a form
- details of the PGP keys according to the bank's PGP guide
The channel#
Files are sent and fetched over SFTP. You log in with an SSH-2 key. Danske Bank recommends RSA, and the key must be at least 2048 bits. The largest file you can send is 500 MB.
Danske Bank lists upcoming changes to its channels on its own page.
The keys#
At Danske Bank there are two kinds of keys:
- The SSH key logs in to the SFTP server. Its public part is registered with the bank.
- The PGP keys protect the payment file itself. You download Danske Bank's public PGP key and send your own according to the bank's PGP guide.
Your private PGP key and its password stay on your server.
Danske Bank's current public PGP key expires on 17 December 2026. Fetch the new key from the bank's OpenPGP page before that date. Import it into SafeSeal and point to it in the flow. Otherwise your files risk being rejected after 17 December.
Put the next expiry date in your operating routine once you have changed the key. More about key pairs and key changes is in the PGP guide.
The file format#
Danske Bank wants payment files in ISO 20022 XML according to the bank's own version. The bank has a validation tool for pain.001.001.03. Ask the bank for the format description that applies to you and send it to your system supplier.
From 2 November 2026 the date in the salary file is the day the salaries are debited from the company's account. Check that the finance or payroll system sets the date that way.
The banks check more than they used to. The payee's name and the OCR number have to be right, and each payment may carry only one reference. Go through the ISO 20022 checklist before you send the first file. If the finance system can only create old files such as LB, Format conversion turns them into pain.001 on your server.
Reports#
Danske Bank sends camt.053 with the account statement and camt.054 with a notification of each transaction. Such a transaction can be an incoming payment with its OCR number. Both are ordered with a form at the bank.
Ask the bank whether status reports for the payment files (pain.002) are included in your channel.
Bankgirot's Bg Max file cannot be used after 27 November 2026. Incoming payments now come in camt.054 or camt.053. More about that is in the guide to incoming payments and camt.054.
Ask the bank to send the reports unencrypted. The transfer is still encrypted by SFTP, and SafeSeal fetches the files and puts them where the finance system reads them in.
Testing#
Run the payment file through Danske Bank's validation tool before you send it. Ask the bank whether there is a test environment for the SFTP channel.
Then send a real payment with a small amount. Check that it arrives. The receipt should come back and be imported into the finance system.
Setting it up in SafeSeal#
You need two flows. One sends the payment files, the other fetches the reports. You set up both in SafeSeal Config, and the service then runs them around the clock.
The key#
Open Tools › PGP keys.... Choose New to create a key pair and enter Username, Password and Repeat password. Send the public key to Danske Bank. Add the bank's public key with Import. The keys are saved in the PgpKeys folder and never leave the server.
Create the SSH key for the login on the server with the tool you already use for SSH. Then point to the private key file in the RSA field.
The flow for payment files#
Fetch#
Choose Type File system and the Folder where the finance system puts the payment files, for example C:\SafeSeal\Out\Payments. Set File pattern, for example *.xml. With Min file age no file is sent half finished while it is still being written.
Send#
Choose Method PGP. Open PGP settings… and choose Action Encrypt. If the bank's PGP guide requires signing, choose Encrypt and sign. Point to the bank's key in Public key. When signing, point to your own in Secret key too and enter its Password. Under Recipient choose Type FTP and Protocol SFTP. Fill in Host, Port, Path and Username from the bank. Point to the SSH key in RSA. If the key has a passphrase, enter it in Password.
Afterwards#
Choose Action Move to folder, for example C:\SafeSeal\Archive\Payments. The original is then kept.

Click Check connection in the Send step. SafeSeal logs in and lists the files in the folder on the bank's server. With Test writing on the server you can see that files can be put there. Check the folders in Fetch and Afterwards with Check permissions.
The flow for reports#
Fetch from the bank's server with Type FTP and Protocol SFTP. Use the same login, but the folder for reports. Poll frequency sets how often SafeSeal looks for new files. Send with Method No processing to the folder that the finance system imports from.
Run both flows once with Run now. The All flows overview shows every file that has been sent and fetched. If something goes wrong, you get an email. Every setting is described in the manual's chapter on flows.
Common errors#
The bank rejects the key#
After 17 December 2026 the most likely cause is that the flow still encrypts with the bank's old key. Import the new one and point to it in the flow. Also check that the bank has your public key.
Wrong version of pain.001#
The bank rejects the file before it reads the content. Run the file through the validation tool and ask your system supplier to change the version.
The payee's name is missing#
Payments without the payee's name are rejected. The name comes from the finance system and has to be on the supplier there.
Wrong OCR number#
The banks check the OCR reference. A wrong reference can get the payment rejected.
Sources#
Checked 28 November 2026.