Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 1 addition & 13 deletions src/ssl-bump.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,6 @@ export function chownRecursive(dirPath: string, uid: number, gid: number): void
}
}

/**
* Configuration for SSL Bump CA generation
*/
export interface SslBumpConfig {
/** Working directory to store CA files */
workDir: string;
/** Common name for the CA certificate (default: 'AWF Session CA') */
commonName?: string;
/** Validity period in days (default: 1) */
validityDays?: number;
}

/**
* Result of CA generation containing paths to certificate files
*/
Expand Down Expand Up @@ -178,7 +166,7 @@ export function cleanupSslKeyMaterial(workDir: string): void {
* @returns Paths to generated CA files
* @throws Error if OpenSSL commands fail
*/
export async function generateSessionCa(config: SslBumpConfig): Promise<CaFiles> {
export async function generateSessionCa(config: { workDir: string; commonName?: string; validityDays?: number }): Promise<CaFiles> {
const { workDir, commonName = 'AWF Session CA', validityDays = 1 } = config;

// Create ssl directory in workDir, backed by tmpfs when possible
Expand Down
Loading