Wash beans, trim ends, and leave whole or cut into 1-inch pieces.
For hot pack, cover beans with boiling water and boil 5 minutes. Fill jars loosely, leaving 1-inch headspace; add optional salt and cover with hot cooking liquid.
For raw pack, fill jars tightly with raw beans, leaving 1-inch headspace; add optional salt and boiling water.
Adjust lids and process in a pressure canner: pints 20 minutes; quarts 25 minutes. Use the correct pressure for gauge type and altitude.