Prospects for observations of pulsars and pulsar wind nebulae with CTA