From the course: iOS and watchOS App Development: Notifications
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Convert .p12 to .pem
From the course: iOS and watchOS App Development: Notifications
Convert .p12 to .pem
- [Instructor] As you head out into the world of servers and providers, you'll find two types of files for the certificate key, pem and p12. Take a look at the desktop. The certificate key we generated is a p12 with the name that we put in there of HuliAPNS. Many systems and test platforms, including the one we will use, use the pem format. To get a pem, you'll need to do some command line work. Go back into the Utilities folder under applications, utilities, and go to terminal. Go to where you saved the certificate. Now I saved mine on the desktop, so I can go to desktop, at cd, desktop, and there it is. All you need to do is run this command which converts the file, openssl pkcs12 -in, and you put your input file, which will be HuliAPNS.p12, and you you'll put your output file, which will be HuliAPNS.pem -nodes. Hit return it'll ask for an import password. We didn't have one so I just hit return and it says OK. If you take a look at the desktop you'll see we have a dot pem file…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.