I tried to initialise Xcode Server on mac-mini 2020 M1 and got error. Xcode 13.1, macOS Monterey 12.0.1. I tried to upgrade libressl with no luck and have no idea what to do (system has new version but xcscontrol still using libressl-2.8)
sudo xcscontrol --initialize /Volumes/Lacia/XcodeServer --build-service-user xcodeserver
objc[28026]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libamsupport.dylib (0x1fa64f130) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103fcc2c8). One of the two will be used. Which one is undefined.
objc[28026]: Class AMSupportURLSession is implemented in both /usr/lib/libamsupport.dylib (0x1fa64f180) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103fcc318). One of the two will be used. Which one is undefined.
*** (1/29) [START] Verifying that Xcode is accessible
(1/29) [END - 0.09s] Verifying that Xcode is accessible
*** (2/29) [START] Checking if Xcode version is supported
(2/29) [END - 0.00s] Checking if Xcode version is supported
*** (3/29) [START] Checking for Rosetta
(3/29) [END - 0.00s] Checking for Rosetta
*** (4/29) [START] Running xcode-select --switch for /Applications/Xcode.app
*** (5/29) [START] Enabling developer mode
*** (6/29) [START] Creating default service data directories
(6/29) [END - 0.00s] Creating default service data directories
*** (7/29) [START] Creating a symlink to the current Xcode application path
*** (8/29) [START] Preparing control integrations
(7/29) [END - 0.00s] Creating a symlink to the current Xcode application path
(8/29) [END - 0.00s] Preparing control integrations
*** (9/29) [START] Configuring CouchDB
*** (10/29) [START] Configuring Redis
*** (11/29) [START] Configuring Apache
*** (12/29) [START] Configuring service launchd jobs
(11/29) [END - 0.00s] Configuring Apache
(10/29) [END - 0.00s] Configuring Redis
(9/29) [END - 0.00s] Configuring CouchDB
(12/29) [END - 0.00s] Configuring service launchd jobs
*** (13/29) [START] Creating service groups
*** (14/29) [START] Configuring CouchDB to use all cores
*** (15/29) [START] Configuring logging
(14/29) [END - 0.00s] Configuring CouchDB to use all cores
(15/29) [END - 0.00s] Configuring logging
(5/29) [END - 0.01s] Enabling developer mode
(13/29) [END - 0.01s] Creating service groups
*** (16/29) [START] Creating service users
(4/29) [END - 0.01s] Running xcode-select --switch for /Applications/Xcode.app
(16/29) [END - 1.72s] Creating service users
*** (17/29) [START] Configuring SSL certificates
(17/29) [END - 4.88s] FAILED: Configuring SSL certificates
Failed: Could not export API server SSL certificate: Error Domain=XCSSecurity Code=-1 "OpenSSL: Error decrypting key
4306077228:error:06FFF089:digital envelope routines:CRYPTO_internal:bad key length:/System/Volumes/Data/SWE/macOS/BuildRoots/b8ff8433dc/Library/Caches/com.apple.xbs/Sources/libressl/libressl-75/libressl-2.8/crypto/apple/hmac/hmac.c:188:
4306077228:error:06FFF078:digital envelope routines:CRYPTO_internal:keygen failure:/System/Volumes/Data/SWE/macOS/BuildRoots/b8ff8433dc/Library/Caches/com.apple.xbs/Sources/libressl/libressl-75/libressl-2.8/crypto/evp/evp_pbe.c:166:
4306077228:error:23FFF073:PKCS12 routines:func(4095):pkcs12 algor cipherinit error:/System/Volumes/Data/SWE/macOS/BuildRoots/b8ff8433dc/Library/Caches/com.apple.xbs/Sources/libressl/libressl-75/libressl-2.8/crypto/pkcs12/p12_decr.c:83:
4306077228:error:23FFF075:PKCS12 routines:func(4095):pkcs12 pbe crypt error:/System/Volumes/Data/SWE/macOS/BuildRoots/b8ff8433dc/Library/Caches/com.apple.xbs/Sources/libressl/libressl-75/libressl-2.8/crypto/pkcs12/p12_decr.c:133:
" UserInfo={NSLocalizedDescription=OpenSSL: Error decrypting key
4306077228:error:06FFF089:digital envelope routines:CRYPTO_internal:bad key length:/System/Volumes/Data/SWE/macOS/BuildRoots/b8ff8433dc/Library/Caches/com.apple.xbs/Sources/libressl/libressl-75/libressl-2.8/crypto/apple/hmac/hmac.c:188:
4306077228:error:06FFF078:digital envelope routines:CRYPTO_internal:keygen failure:/System/Volumes/Data/SWE/macOS/BuildRoots/b8ff8433dc/Library/Caches/com.apple.xbs/Sources/libressl/libressl-75/libressl-2.8/crypto/evp/evp_pbe.c:166:
4306077228:error:23FFF073:PKCS12 routines:func(4095):pkcs12 algor cipherinit error:/System/Volumes/Data/SWE/macOS/BuildRoots/b8ff8433dc/Library/Caches/com.apple.xbs/Sources/libressl/libressl-75/libressl-2.8/crypto/pkcs12/p12_decr.c:83:
4306077228:error:23FFF075:PKCS12 routines:func(4095):pkcs12 pbe crypt error:/System/Volumes/Data/SWE/macOS/BuildRoots/b8ff8433dc/Library/Caches/com.apple.xbs/Sources/libressl/libressl-75/libressl-2.8/crypto/pkcs12/p12_decr.c:133:
}
Total time: 6.70 seconds
Error initializing service: Could not export API server SSL certificate: Error Domain=XCSSecurity Code=-1 "OpenSSL: Error decrypting key
4306077228:error:06FFF089:digital envelope routines:CRYPTO_internal:bad key length:/System/Volumes/Data/SWE/macOS/BuildRoots/b8ff8433dc/Library/Caches/com.apple.xbs/Sources/libressl/libressl-75/libressl-2.8/crypto/apple/hmac/hmac.c:188:
4306077228:error:06FFF078:digital envelope routines:CRYPTO_internal:keygen failure:/System/Volumes/Data/SWE/macOS/BuildRoots/b8ff8433dc/Library/Caches/com.apple.xbs/Sources/libressl/libressl-75/libressl-2.8/crypto/evp/evp_pbe.c:166:
4306077228:error:23FFF073:PKCS12 routines:func(4095):pkcs12 algor cipherinit error:/System/Volumes/Data/SWE/macOS/BuildRoots/b8ff8433dc/Library/Caches/com.apple.xbs/Sources/libressl/libressl-75/libressl-2.8/crypto/pkcs12/p12_decr.c:83:
4306077228:error:23FFF075:PKCS12 routines:func(4095):pkcs12 pbe crypt error:/System/Volumes/Data/SWE/macOS/BuildRoots/b8ff8433dc/Library/Caches/com.apple.xbs/Sources/libressl/libressl-75/libressl-2.8/crypto/pkcs12/p12_decr.c:133:
" UserInfo={NSLocalizedDescription=OpenSSL: Error decrypting key
4306077228:error:06FFF089:digital envelope routines:CRYPTO_internal:bad key length:/System/Volumes/Data/SWE/macOS/BuildRoots/b8ff8433dc/Library/Caches/com.apple.xbs/Sources/libressl/libressl-75/libressl-2.8/crypto/apple/hmac/hmac.c:188:
4306077228:error:06FFF078:digital envelope routines:CRYPTO_internal:keygen failure:/System/Volumes/Data/SWE/macOS/BuildRoots/b8ff8433dc/Library/Caches/com.apple.xbs/Sources/libressl/libressl-75/libressl-2.8/crypto/evp/evp_pbe.c:166:
4306077228:error:23FFF073:PKCS12 routines:func(4095):pkcs12 algor cipherinit error:/System/Volumes/Data/SWE/macOS/BuildRoots/b8ff8433dc/Library/Caches/com.apple.xbs/Sources/libressl/libressl-75/libressl-2.8/crypto/pkcs12/p12_decr.c:83:
4306077228:error:23FFF075:PKCS12 routines:func(4095):pkcs12 pbe crypt error:/System/Volumes/Data/SWE/macOS/BuildRoots/b8ff8433dc/Library/Caches/com.apple.xbs/Sources/libressl/libressl-75/libressl-2.8/crypto/pkcs12/p12_decr.c:133:
}