Since several decade, the Internet of Things IoT hasattracted enormous interest in the research communityand industry. However, IoT technologies has completelytransformed vehicular ad hoc networks (VANETs) intothe "Internet of Vehicles" IoV. In IoV networks, we needto integrate many different technologies, services andstandards. However, the heterogeneity and large numberof vehicles will increase the need of data security.The IoV security issues are critical because of the vulnerabilitiesthat exist during the transmission of informationthat expose the IoV to attacks. Each attack hasa security procedure. Many protocols and mechanismsexist to combat or avoid this communication securityproblem. One of these protocols is VIPER (a Vehicleto-Infrastructure communication Privacy EnforcementpRotocol). In our work, we try to improve this protocolby using Blockchain technology and certificationauthority.