Network Security and Encryption in Public and Extrajudicial Services

May 18, 20262 min read
SecurityCryptographyVPNNetworks

Notary services and extrajudicial registry offices deal daily with legally binding public-faith records, property records, and highly sensitive civil data. The traffic of this information between local registries, state registry centers, and federal agencies must be shielded against active or passive interception.

In this article, I discuss the implementation of secure virtual private networks (VPNs) using IPsec and strict symmetric and asymmetric encryption policies to ensure absolute integrity.

Secure Network Topology

To protect the transmission of digital notary deeds, we designed connections based on:

  • Site-to-Site IPsec VPN Tunnels: Channel encryption with IKEv2 and AES-256-GCM, no legacy algorithms.
  • Dedicated Next-Generation Firewalls (NGFW): Strict IDS/IPS (Intrusion Detection and Prevention) policies to mitigate lateral movement attempts.
  • Network segmentation: isolation of the public service network from the rest of internal traffic and from the databases that hold signature and deed records. That is VLAN and firewall, not necessarily a separate cable.

Encryption and Digital Signature

For compliance with ICP-Brasil and the LGPD (General Data Protection Law):

  1. Digital Certificates (A3 / HSM): All transactional communication is signed with RSA keys of 2048 bits or more (the ICP-Brasil standard), stored on a token, smart card, or HSM.
  2. Encryption at Origin and in Transit: Files are encrypted locally before they are sent and travel over TLS 1.3, which prevents leaks even if the transit VPN fails.

Check the tunnel, not only the drawing

A topology slide does not prove TLS 1.3 or the IPsec tunnel. The openssl below and ipsec status do.

openssl s_client -connect registry.example:443 -tls1_3 </dev/null 2>/dev/null \
  | openssl x509 -noout -subject -dates

If the server does not accept TLS 1.3, s_client fails and prints no certificate.

The snippet below is the cryptographic part of the strongSwan conn, not an ipsec.conf that comes up on its own. It still needs left, right, and auto=start with the registries' real addresses. AES-256-GCM and IKEv2; the ! at the end of each proposal stops the tunnel from negotiating a legacy cipher.

conn registry-central
  keyexchange=ikev2
  ike=aes256gcm16-prfsha384-ecp384!
  esp=aes256gcm16-ecp384!
  leftsubnet=10.20.0.0/24
  rightsubnet=10.30.0.0/24

ipsec status has to show the IKE_SA as ESTABLISHED and the CHILD_SA as INSTALLED before any batch of registry records crosses the link.


Key Lesson

Security in public services is not a static product, but rather a perpetual cycle of audits, vulnerability scans, and continuous human awareness.

Related Articles