1. AppleTV伪装预告片证书
1 | $ openssl req -new -nodes -newkey rsa:2048 -out ~/Desktop/trailers.pem -keyout ~/Desktop/trailers.key -x509 -days 7300 -subj "/C=US/CN=trailers.apple.com" |
这将在桌面上创建两个文件:trailers.key和trailers.pem。下一步运行:
1 | $ openssl x509 -in ~/Desktop/trailers.pem -outform der -out ~/Desktop/trailers.cer && cat ~/Desktop/trailers.key >> ~/Desktop/trailers.pem |
执行完上面的命令,您将得到3个证书文件