The new function is getSignature( privateKeyPath : String, hashFunction : String, privateKeyPassword : String).
Where generateSignature() used the internal private key in Switch by default, getSignature() requires your own private key file.
To generate a PKCS#8 private key, run the following commands:
Code: Select all
$ openssl genrsa -des3 -out myprivatekey.pem 2048
$ openssl pkcs8 -topk8 -inform PEM -outform PEM -in myprivatekey.pem -out appstore.key