Depreciated ByteArray function in Switch 2017 update 2
Posted: Thu Jul 20, 2017 7:11 pm
The ByteArray function generateSignature( privateKeyPath : String ) was "depreciated" by Enfocus in Switch 2017 Update 2. Normally depreciated means it is no longer recommend to be used and will be removed in future updates. However, in this case it means Enfocus removed the function entirely. The documentation that shipped with Switch 2017 Update 2 beta did not contain this change.
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:
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