PacketLab
MACsec · Link security

PSK and certificate-based authentication

Choose how devices establish association trust without confusing EAP authentication with frame encryption.

Prerequisite: Introduction to MACsec.

Example platform scope. CLI examples use supported Catalyst 9500 physical ports on IOS XE 17.18.x. The example port is TenGigabitEthernet1/0/1; substitute the actual supported port on your model. Verify hardware, license and release support in the linked guide. Configuration fragments state their prerequisites; all output is illustrative, with unrelated fields omitted.

Choose the trust mechanism

R1 and R2 need a common basis for trusting MKA participation. With PSK MKA, an operator provisions matching CAK and CKN at the peers. No EAP-TLS handshake or RADIUS server is required merely because MKA is used. With certificate-based EAP authentication, validated credentials establish identity and keying material before MKA installs traffic keys.

DecisionPSKCertificate-based EAP-TLS
ProvisioningShared secret and identifier per association.Private key, certificate, trust chain and authentication policy.
Operational dependencySecure secret distribution and coordinated lifetime management.Certificate enrollment/renewal, valid time, identity checks and any required AAA/revocation reachability.
Compromise responseReplace shared credentials at affected peers.Revoke/replace affected identity credentials and terminate/reestablish affected sessions as policy requires.
Data protectionMKA installs SAKs for MACsec.MKA still installs SAKs for MACsec.

A certificate does not encrypt Ethernet payloads directly. Nor does an 802.1X “Authorized” status automatically prove that confidentiality is active.

Follow the EAP-to-MKA sequence

One EAP-TLS authentication directionIllustrative topology
R1 · supplicantR2 · authenticatorAAAEAPOL on linkEAP relay over RADIUSSolid: physical peer link · dashed: logical AAA exchange via management network
The dashed path is a logical authentication exchange over the management network. It is not an extra MACsec-protected data link. Roles can differ in a mutually authenticated network-link deployment.
  1. The supplicant presents its identity using EAP-TLS over EAPOL on the local link. The authenticator can relay EAP to an authentication server using RADIUS.
  2. The EAP-TLS endpoints validate the relevant certificate chains and expected identities. Certificate validity, usage, trust and revocation policy matter, not merely the presence of a certificate file.
  3. Successful EAP authentication exports master session key material. The supported 802.1X/MACsec procedure derives association key material and identifies the resulting association.
  4. MKA authenticates participation, elects a key server and distributes SAKs. MACsec can then protect the controlled data traffic.

The authenticator is not necessarily the EAP-TLS server: in pass-through mode the AAA server terminates EAP. Local EAP and direct device authentication are separate platform-supported designs. Do not mix their configuration with a RADIUS-based design. The CA signs certificates; it is also a distinct role from the authentication server.

Inspect a PSK credential

The following global fragment is the credential portion of the complete protected-link recipe. The identifier is hex 01, the CAK is 128 bits, and both peers need the same values. The key-chain's local name can differ.

Configuration fragment · both PSK peers
configure terminal
key chain LINK-KEY macsec
 key 01
  cryptographic-algorithm aes-128-cmac
  key-string 8c40a71d25f6913b70e2c94a56d809be
end

Replace the example secret before deployment. The CKN is not a second password, and AES-128-CMAC here is the MKA authentication algorithm rather than the data-plane GCM cipher. A 256-bit deployment needs compatible authentication/key sizes, cipher support and licensing; changing one number is insufficient.

Prepare and bind certificate authentication

For the scoped certificate-based switch-to-switch design, prepare CA enrollment, trusted authentication-server identity, unique device certificates/private keys, working clock synchronization, reachable AAA and revocation services, and policies authorizing MACsec keying. Configure both authenticator and supplicant roles as required by the selected network-link design. Enrollment is interactive and site-specific: verify the CA fingerprint through a trusted channel, submit a CSR, install the issued certificate and test its chain before enabling the protected port.

This interface binding fragment assumes the site's tested AAA/802.1X control policy, enrolled LINK-CERT credentials profile and LINK-TLS EAP-TLS profile already exist. It is an authentication binding example, not a replacement for those prerequisite policies. Apply it to a separate certificate-based test link, not on top of the PSK example.

Configuration fragment · certificate link with existing enrollment and AAA policy
configure terminal
interface TenGigabitEthernet1/0/1
 dot1x pae both
 dot1x credentials LINK-CERT
 dot1x supplicant eap profile LINK-TLS
 macsec access-control must-secure
 macsec network-link
end

The credential profile selects the enrolled trustpoint and local identity; the EAP profile selects TLS and its trustpoint. The site's access-session/control policy must keep unauthenticated data closed and invoke authentication. Follow the linked platform procedure for that policy rather than borrowing a host-access or local-EAP policy unchanged.

Verify each stage separately

Illustrative output · R1 · enrolled device certificate
R1# show crypto pki certificates LINK-CA
Certificate
 Status: Available
 Subject:
  cn=R1.example.test
 Validity Date:
  start date: 00:00:00 UTC Oct 1 2027
  end date: 00:00:00 UTC Oct 1 2028

For this example the test clock is inside the displayed validity interval. “Available” means installed, not necessarily trusted by the authentication server. Verify identity policy, chain and revocation handling separately.

Illustrative output · R1 · certificate authentication completed
R1# show access-session interface TenGigabitEthernet1/0/1 details
Interface: TenGigabitEthernet1/0/1
User-Name: R2.example.test
Status: Authorized

R1# show mka sessions
Total MKA Sessions....... 1
 Secured Sessions... 1
 Pending Sessions... 0

Authorization plus a secured MKA session shows the two stages progressed. Finally check MACsec confidentiality, active receive/transmit associations and protected traffic counters. If EAP fails due to an expired certificate, renew the credential and restore trust; if EAP succeeds but MKA remains pending, investigate the keying/policy stage instead of changing the CA blindly.

Key Takeaways

  • PSK MKA provisions CAK/CKN directly; it does not inherently need an EAP or RADIUS exchange.
  • EAP-TLS validates identities and exports key material; MKA then establishes MACsec traffic keys.
  • The CA, authenticator and EAP server perform different jobs.
  • Certificate operation depends on identity policy, valid time, chain trust, renewal and revocation handling.
  • Certificate availability, authorization, MKA security and actual data confidentiality require separate checks.

PSK and certificate-based authentication Quiz

Six questions · four options each · select one answer per question. Submit all answers to see your score and explanations.

1. Does PSK MKA inherently require RADIUS?
2. What follows successful key-generating EAP authentication in this design?
3. Which role signs the device certificate?
4. An access session is Authorized. What is still needed to demonstrate encryption?
5. Why must the EAP-TLS server identity be validated?
6. Why is the certificate interface fragment not a complete deployment recipe?
Technical references and example notes

EAP-TLS and credential profile roles · PKI enrollment procedures. These supporting IOS XE references explain the profile and enrollment workflow; use the scoped platform guide for the full interface/access policy.

IEEE 802.1AE · IEEE 802.1X and MKA · Platform configuration and verification · Topology-symbol attribution.

Diagrams, frame sequences and command results are constructed teaching examples, not recorded captures or lab measurements.