# phpman > 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)
