Identification of the source of images is an indispensable part of digital forensics that involve images. Although the correlation between images and imaging devices could be characterized using some features and would thus make it possible to identify the sources of images, the efficiency of extracting features as well as estimating and matching of the pattern of the features in current methods are less than satisfactory and could be improved by automatic features extraction. This paper proposes a method for identifying the source camera of digital images based on convolutional neuron network. The method replies on designing a new network that involves an input layer, three convolutional layers with max pooling and normalization, two fully-connected layers and the Softmax classifier to test the task of identifying the source camera following the procedure of digital forensics. The original images are cropped into small-sized patches that the designed network would analyze, lowering the requirement of the network to use a large quantity of sample images from the targeting camera as the training data. A local-to-global strategy is also adopted that would respect the rule of majority voting of the image patches in determining the source camera. Testing results show that the proposed method can achieve accuracy of up to 99.8%, which assures the effectiveness of the majority voting. In addition, we can train an SVM classifier with the deep convolutional features of images that are extracted from the network that could achieve testing performance that is even better than Softmax.