Export Private Keys from Bitcoin-QT
My solution to the question for an encrypted wallet:

walletpassphrase "......." 600
dumpprivkey ......

I made the mistake of including the brackets [ ] when entering the public key after the call dumpprivkey.