# Tips on replacing a self-signed private key certificate

**URL:** <https://community.cdata.com/t/tips-on-replacing-a-self-signed-private-key-certificate/1254>\
**Category:** Editions\
**Tags:** as4, article, cdata-arc, as2, certificate\
**Created:** [December 16, 2025, 10:37pm UTC](https://community.cdata.com/t/tips-on-replacing-a-self-signed-private-key-certificate/1254 "2025-12-16T22:37:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![James\_B](https://sea3.discourse-cdn.com/cdata/user_avatar/community.cdata.com/james_b/32/1688_2.png) [@James\_B](https://community.cdata.com/u/James_B)\
**Post date:** [December 16, 2025, 10:37pm UTC](https://community.cdata.com/t/tips-on-replacing-a-self-signed-private-key-certificate/1254/1 "2025-12-16T22:37:42Z")

</div>

Private key certificates are used in AS2 and other MFT protocols to allow&nbsp;for secure elements of MFT transfers – notably, data encrypted with&nbsp;the matching&nbsp;public key certificate&nbsp;can be decrypted with the private key certificate, and messages signed with the private key certificate can be verified with the matching public key.

In any protocol that uses private and public key pairs, both parties to the transaction will need to be updated if a certificate is replaced, because trading partners that exchange messages with the owner of the private key will need to obtain and install the matching public key from the partner.

One thing that you will notice with certificates issued this way is that they have a built-in&nbsp;expiration&nbsp;date:

 ![64416c7d-41c2-4012-bc1d-421a91dcc572.png](https://us1.discourse-cdn.com/cdata/original/2X/d/d6fcd89f8e86dce33e403d524e39ed719e25d493.png)

While,&nbsp;in theory,&nbsp;this&nbsp;validity period can&nbsp;be any&nbsp;validity period chosen by the issuer,&nbsp;in&nbsp;practice it is&nbsp;common&nbsp;to issue a certificate&nbsp;in the range of 1 to 5 years, depending on the security policy of the issuer.

When it comes time to replace your private key certificate, you will need to provide your partners with the&nbsp;matching public key certificate when you begin using&nbsp;your new private key certificate, so that operations that you perform with the private key certificate or operations that your partner performs with your public certificate match.&nbsp;This article&nbsp;will provide tips on how to approach this to update your&nbsp;partners&nbsp;in advance&nbsp;and make this process as seamless as possible:

1. **Create your new certificate in&nbsp;advance**

2. **Share the new public key with your trading partners and&nbsp;announce&nbsp;a cutover date**

3. **Keep your old certificate as a rollover certificate when cutting over**

**Creating a new certificate without configuring it:**

In the Settings (cogwheel)-\>Certificates section of the&nbsp;application, you&nbsp;can click on the +Add&nbsp;Certificate&nbsp;button to create a new certificate:

 ![54f87dfa-de3c-4681-877f-390c219daa73.png](https://us1.discourse-cdn.com/cdata/original/1X/b86fb0f3a60f715cb4656a63511da727403b6a25.png)

You will then see a new dialog box prompting you for&nbsp;the fields for the new certificate to create:

 ![483e1359-9131-40a7-85bd-1ab37c44eb2e.png](https://us1.discourse-cdn.com/cdata/original/1X/08d8b0a0680c56099cbb091993326c82022e8c20.png)

At a minimum, you need&nbsp;the&nbsp;Common Name&nbsp;and password&nbsp;for the new certificate, but&nbsp;the following tips are recommended:

- Most commonly, the Organization is a match for your identity in the AS2 profile.&nbsp;The&nbsp;Common Name&nbsp;is often used for SSL/TLS certificates and matches the domain name&nbsp;you’re&nbsp;hosting on, but&nbsp;in most cases, it is not important that this&nbsp;match&nbsp;your domain.

- It is recommended that you&nbsp;choose&nbsp;a filename that&nbsp;makes it easy to&nbsp;identify&nbsp;the owner of the certificate and its validity period, so&nbsp;it’s&nbsp;easy to tell apart from earlier iterations.&nbsp;Plugging the&nbsp;expiration&nbsp;or issue date into the name is a good approach.

- Note that the default&nbsp;Serial Number is coded to the&nbsp;hexidecimal&nbsp;equivalent of the&nbsp;2 digit&nbsp;month and&nbsp;2 digit&nbsp;year of the current&nbsp;time&nbsp;&nbsp;(the&nbsp;date the above image was captured is&nbsp;November&nbsp;2025).&nbsp;It’s&nbsp;recommended that you stick with this&nbsp;or&nbsp;come up with&nbsp;your own unique convention for&nbsp;the&nbsp;serial number. If&nbsp;you’re&nbsp;replacing a certificate that was previously issued, it is not recommended that you use the exact same combination&nbsp;of subject and serial number, as some parties may have trouble distinguishing&nbsp;your new certificate from your old one if both identifiers are the same.

- You can choose&nbsp;any validity period that works with your security policy.&nbsp;The only way to compromise a private key that is securely&nbsp;protected is through brute force attack, but&nbsp;the longer that&nbsp;interval&nbsp;you use that certificate, the more likely that is&nbsp;that&nbsp;a dedicated attacker&nbsp;is&nbsp;able to&nbsp;compromise your key.&nbsp;Certificates are intended to be replaced regularly&nbsp;as part of the protocol, so use your judgement here.

- **Remember the password that you provide.** &nbsp;It will be needed later when you&nbsp;configure that certificate.

When&nbsp;you’re&nbsp;done,&nbsp;you’ll&nbsp;notice that two certificates were created, one private key (pfx) and one public key (cer):

![5d8325dd-0225-44db-ad5d-b16df776491e.png](https://us1.discourse-cdn.com/cdata/optimized/2X/c/ce4d198d19f084b8a87a590afe2c826ad53c5f6c_2_690x59.png)

You can download the .cer&nbsp;file and begin sharing it with your partners.

**Share the new public key with your trading partners and&nbsp;announce&nbsp;a cutover date**

It is recommended that you choose a date in advance and&nbsp;use that date to begin switching to the new certificate.&nbsp;If you are using this certificate to replace one that&nbsp;is&nbsp;about to expire, you will be notified&nbsp;in advance of that&nbsp;expiration&nbsp;date so you can&nbsp;plan ahead.

You can share the new .cer&nbsp;file&nbsp;with your partner directly as an email attachment, or if you are publishing your&nbsp;profile in CData Arc&nbsp;via the&nbsp; **Publish AS2 Profile Settings** &nbsp;setting in your AS2 profile:

 ![3c282810-9011-46d1-8d3e-78b1da671e3e.png](https://us1.discourse-cdn.com/cdata/original/2X/f/f6065b875f86ed23bfd022da10be85c115fb213f.png)

You can simply update your&nbsp;Public Certificate:

 ![e9459b64-b614-497e-8642-583f18404f62.png](https://us1.discourse-cdn.com/cdata/original/1X/bf891c09a889bc6117a092db2161c0172422c957.png)

And that&nbsp;will be then&nbsp;available for download&nbsp;when you refresh the&nbsp;Public&nbsp;page:

 ![5f4c03f5-a402-4fbf-8d1f-a1373c1eb8f8.png](https://us1.discourse-cdn.com/cdata/original/2X/5/52462170c312a35f3491e0dbd8b3d36cc0000a13.png)

**NOTE:** &nbsp;In&nbsp;normal cases, the private key certificate that&nbsp;is used&nbsp;in each&nbsp;connection&nbsp;is the Personal Certificate in the Profiles-\>AS2 Profile, but it is possible to override this&nbsp;on a per connection basis in an individual&nbsp;AS2 connection in the&nbsp;Advanced-\>Alternate Local Profile for that connector:

 ![cc10ff43-7143-49c5-b080-11e954e7709e.png](https://us1.discourse-cdn.com/cdata/original/1X/3462e4a05f34b9ba2cc3a65750065ecdb20b76f2.png)

If you have any&nbsp;certificate&nbsp;present in this&nbsp;selection, note that if you update your Personal Certificate in the AS2 Profile, the application will continue to use your Alternate Local Profile until you clear it.&nbsp;If you have a partner&nbsp;that you&nbsp;have&nbsp;an Alternate Local Profile certificate configured that you wish to&nbsp;sync&nbsp;up to your new certificate, be sure to clear the Alternate Local Profile → Private Certificate section when cutting over to the new certificate.

In general,&nbsp;Alternate Local Profile should only be used in multitenant setups (where you maintain multiple local identities with different private keys for each), or in cases where you need to revert a partner to an earlier certificate&nbsp;(we will touch on this again in the troubleshooting section below)&nbsp;because it can be easy to lose track of certificates overridden in this section.&nbsp;If you have an Alternate Local Profile-\>Personal Certificate that&nbsp;_already_&nbsp;matches&nbsp;your AS2 Profile-\>Private&nbsp;Certificate, that field can be cleared now, since there is no difference.

**At the cutover date, begin using the new certificate, and&nbsp;retain&nbsp;your&nbsp;previous&nbsp;certificate as a Rollover Certificate**

At the time of the&nbsp;changeover,&nbsp;begin using the new certificate by configuring it in the AS2 Profile-\>Private&nbsp;Certificate:

 ![2a95b51a-eaa9-4569-9024-3b6875d6362e.png](https://us1.discourse-cdn.com/cdata/original/1X/678d73f37afc68de76ae0d6bd5b83d9b611f1625.png)

At the same time, take the certificate that you were using, and reconfigure it as the Rollover Certificate:

 ![1717da15-7914-4f99-8f21-5079b9d0dbf5.png](https://us1.discourse-cdn.com/cdata/original/2X/b/b34eed5f930736ef2294385d7e86f1258d6c1a69.png)

**How the Rollover Certificate field is used** &nbsp;  
&nbsp;  
CData Arc uses private key certificates for two operations in AS2 (as well as other protocols):

1. To sign outgoing messages&nbsp;and returned MDN receipts

2. To decrypt incoming messages.

For&nbsp;signed&nbsp;messages, there is only one certificate that can be used to make an outgoing&nbsp;signature, so&nbsp;now&nbsp;that you switch the Personal Certificate to&nbsp;a new certificate, new signatures will begin using that certificate.&nbsp;&nbsp;Therefore,&nbsp;it is necessary to provide your certificate in advance for your partner, but&nbsp;signature verification on many systems involves installing the public key amongst many trusted certificates on the machine. Typically, if your partner installs your public key on their system,&nbsp;they’ll&nbsp;be ready for it by the time you begin&nbsp;signing with&nbsp;it.

Decryption, on the other hand, can&nbsp;be tried more than once, and the Rollover Certificate acts as a failover decryption certificate. CData Arc will first&nbsp;attempt&nbsp;to decrypt incoming transmissions with the Personal Certificate, but if that fails, the&nbsp;Rollover Certificate will also be tried. This will allow exchanges to keep working even if the partner is using the old certificate.

**Help!&nbsp;I’ve&nbsp;updated my certificate and one of my partners says that they cannot verify my signatures! Is there any way to roll this back for them?**

In this case, it looks like this partner&nbsp;isn’t&nbsp;ready to accept the new certificate yet, but&nbsp;you can&nbsp;configure an individual AS2 connector to continue using&nbsp;a previous&nbsp;certificate by setting it in the Advanced-\>Alternate Local Profile-\>Private Certificate field.

 ![cc10ff43-7143-49c5-b080-11e954e7709e.png](https://us1.discourse-cdn.com/cdata/original/1X/3462e4a05f34b9ba2cc3a65750065ecdb20b76f2.png)

This certificate will be used in&nbsp;place of the Profile-\>AS2 Profile certificate for this partner, so it will be as if the change never happened.

Because it is easy to lose track of certificates configured in the advanced tab, it is recommended that you check in again in the future to see if the partner can use the new certificate, at which point this field can be cleared.
