Linux Network Certificate CLI Tool


Table of contents

Overview

NOTE: For interactive network certificate generation, please use the Keymaker application at https://keymaker.umd.edu. This CLI tool is more appropriate for automated processes or batch processing. If you have any questions about which tool to use, please feel free to reach out to the Enterprise Linux Services team at request@umd.edu.

The locallinux-create-network-cert CLI tool generates host-level certificates for department-managed Linux workstations to connect to UMD's policy-driven network (802.1X authentication). This tool is specifically for Linux hosts that are owned by the University but managed by departmental system administrators rather than DIT.

Top

Prerequisites

Requesting permission

Before using this tool, you must request permission to generate certificates for your department's hosts:

  1. Send email to: request@umd.edu
  2. Subject: Request for Linux Network Certificate Generation Access
  3. Include the following information:
    • Your full name
    • Your Directory ID
    • Desired hostname pattern (e.g., *.mydepartment.umd.edu)
    • Department name for network policy (e.g., MyDepartment)

The email will create a ticket with your request for the Linux team to configure the appropriate permissions for your glue user to generate certificates for your specified hostname pattern.

Top

System requirements

Top

Usage

Basic syntax

adm locallinux-create-network-cert -hostname <hostname.subdomain.umd.edu> -department <Department>

Parameters

Top

Example usage

# Generate certificate for a specific host

adm locallinux-create-network-cert -hostname "myserver.mydept.umd.edu" -department "MyDept"

 

Top

Step-by-step process

Step 1: Connect to Glue server

First, ensure you are connected to VPN. Then:

ssh your-username@glue.umd.edu

Authenticate with your username and password.

Top

Step 2: Generate certificate

Run the certificate generation command and save the output to a file.

# Generate and save certificates

adm locallinux-create-network-cert \

    -hostname "myhost.mydept.umd.edu" \

    -department "MyDept" > combined_cert.pem

Top

Step 3: Split the certificate and private key

The tool outputs both the certificate and private key in a single stream. You'll need to separate them:

# Extract the certificate

sed -n '/-----BEGIN CERTIFICATE-----/,/-----END CERTIFICATE-----/p' combined_cert.pem > host_cert.pem

 

# Extract the private key

sed -n '/-----BEGIN PRIVATE KEY-----/,/-----END PRIVATE KEY-----/p' combined_cert.pem > host_key.pem

 

# Secure the private key

chmod 600 host_key.pem

 

Top

Step 4: Transfer files to target host and configure network authentication

See KB0020362 for instructions on uploading the certificate and private key to the host and configuring the network connection profiles on both RHEL and Ubuntu distributions.

Top

Output format

The tool returns both certificate and private key via STDOUT in PEM format:

-----BEGIN CERTIFICATE-----

MIIFxjCCA66gAwIBAgITaP...

[certificate data]

...xmKj5L6Gw==

-----END CERTIFICATE-----

-----BEGIN PRIVATE KEY-----

MIIEvgIBADANBgkqhkiG9w...

[private key data]

...XYZ123==

-----END PRIVATE KEY-----

 

Top

Security considerations

Certificate management

Top

Access control

Top

Troubleshooting

Permission denied errors

If you receive permission denied errors:

  1. Verify permissions: Confirm your access request was approved and processed
  2. Check hostname pattern: Ensure the hostname matches your authorized pattern
  3. Validate department: Confirm the department parameter is correct

Top

Network configuration issues

For problems with network connectivity after certificate installation:

  1. Verify certificate installation: Check that files are in correct locations with proper permissions
  2. Check network configuration: Ensure 802.1X/EAP-TLS is properly configured
  3. Test connectivity: Use network diagnostic tools to verify certificate authentication

Top

Getting help

For issues with the certificate generation tool or network configuration:

Top

Related information

Policy-driven network

This certificate system is part of UMD's Campus Network Refresh initiative. The certificates enable:

Top