# man > py3rsa-keygen(1)

[_py3rsa-keygen_(1)](https://www.chedong.com/phpMan.php/man/py3rsa-keygen/1/markdown)                       General Commands Manual                      [_py3rsa-keygen_(1)](https://www.chedong.com/phpMan.php/man/py3rsa-keygen/1/markdown)

## NAME
       **py3rsa-keygen **- generate a new RSA keypair

## SYNOPSIS
       **py3rsa-keygen **[_OPTION_]... _KEYSIZE_

## DESCRIPTION
       Generate a new RSA keypair of _KEYSIZE_ bits.

## OPTIONS
### -h --help
              show help message and exit

       **--pubout=_**PUBOUT_
              output  filename for the public key. the public key is not saved if this option is not
              present. you can use **py3rsa-priv2pub **to create the public key file later.

### -o _ --out=_
              output filename for the private key. the key is written to stdout if  this  option  is
              not present.

       **--form=_**FORM_
              key format of the private and public keys - default PEM

## AUTHOR
       **py3rsa-keygen **was written by Sybren A. Stuvel <sybren AT stuvel.eu>.

                                                                                    [_py3rsa-keygen_(1)](https://www.chedong.com/phpMan.php/man/py3rsa-keygen/1/markdown)
