Although it seems that you can't easily generate a legacy receive address with the newer Bitcoin core...
It's easy to generate any type of address in the latest version of Bitcoin Core... simply use the
getnewaddress command in Bitcoin Core and use the "legacy" option for address_type
getnewaddress ( "label" "address_type" )
Returns a new Bitcoin address for receiving payments.
If 'label' is specified, it is added to the address book
so payments received with the address will be associated with 'label'.
Arguments:
1. label (string, optional, default="") The label name for the address to be linked to. It can also be set to the empty string "" to represent the default label. The label does not need to exist, it will be created if there is no label by the given name.
2. address_type (string, optional, default=set by -addresstype) The address type to use. Options are "legacy", "p2sh-segwit", and "bech32".
Result:
"str" (string) The new bitcoin address
Note that to provide the 2nd option (address_type), you
must provide the 1st option (label), but it can be empty... so you can use:
getnewaddress "" "legacy"
And lastly, you can also set the "default" address type that Bitcoin Core will generate by using the
-addresstype commandline parameter (or setting it in bitcoin.conf).