Depreciated ByteArray function in Switch 2017 update 2

Post Reply
dkelly
TOP CONTRIBUTOR
Posts: 658
Joined: Mon Nov 29, 2010 8:45 pm
Location: Alpharetta GA USA
Contact:

Depreciated ByteArray function in Switch 2017 update 2

Post by dkelly »

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:

Code: Select all

$ openssl genrsa -des3 -out myprivatekey.pem 2048
$ openssl pkcs8 -topk8 -inform PEM -outform PEM -in myprivatekey.pem -out appstore.key
enfocus
Newbie
Posts: 14
Joined: Fri May 12, 2017 9:10 am

Re: Depreciated ByteArray function in Switch 2017 update 2

Post by enfocus »

We indeed deprecated generateSignature() in Switch 2017, update 2 and advise to use the newly introduced getSignature() instead. However, we did not remove generateSignature(). The latest nightly builds of Switch 2017, update 2 have been tested and we can't find an issue with generateSignature().

Most likely there was an issue with the generateSignature() function in previous nightly builds and it has been fixed in the meantime.
Zoranj
Member
Posts: 107
Joined: Tue Sep 20, 2016 7:37 pm
Location: Canada

Re: Depreciated ByteArray function in Switch 2017 update 2

Post by Zoranj »

When is Update 2 going to be released?
enfocus
Newbie
Posts: 14
Joined: Fri May 12, 2017 9:10 am

Re: Depreciated ByteArray function in Switch 2017 update 2

Post by enfocus »

Update 2 will be released from the moment we are 100% sure it is compatible with macOS High Sierra.

Compatibility tests and fixes are being done with the beta of macOS High Sierra. After the release date those tests will be re-done to make sure there are no differences which break compatibility between the released version of macOS High Sierra and the beta version.

Therefore the Switch 2017, update 2 release date will be some time after the macOS High Sierra release date (September 25). How much longer will depend on the results of the tests.
Zoranj
Member
Posts: 107
Joined: Tue Sep 20, 2016 7:37 pm
Location: Canada

Re: Depreciated ByteArray function in Switch 2017 update 2

Post by Zoranj »

Thanks for info
Post Reply