I'm automating a process and have that constraint that I can only use Windows Server (2012 is the base, but I'm not sure if a 2008 will show up somewhere) native tools. I need to get a key pair (certificate.pem and certificate_key.pem) and transform it into a PFX bundle to use with IIS. I know I can use certutil -MergePFX input_certificate output_certificate but it depends on user interaction. I attempted to use certutil -p '' -MergePFX [...] but it didn't work, certutil throws a couple errors about the number of parameters being wrong. There's a way to run it without interactivity? Am I missing other Windows native tools that can do the same?
The machine issuing commands is running python + pyWinRM, the scripts being sent to remote execution are all powershell.