How to convert crt file to c header file?

Hello, 

in DevAcademi - lessone 4 excercise 2, need to convert crt file to c header file, once running the command "python crt_to_header.py" 

i'm getting error "FileNotFoundError: [Errno 2] No such file or directory: 'server_certificate.crt'"

what can cause it? how can i solve it?

example for the output:

C:\Users\Ronen\source\repos\Cellular-IoT-Fundamentals\lesson4\cellfund_less4_exer2\script>python crt_to_header.py
Traceback (most recent call last):
File "C:\Users\Ronen\source\repos\Cellular-IoT-Fundamentals\lesson4\cellfund_less4_exer2\script\crt_to_header.py", line 5, in <module>
key = open('server_certificate.crt').read()
FileNotFoundError: [Errno 2] No such file or directory: 'server_certificate.crt'

Thanks, 

Ronen

Related