title: During enabling Xcode Server fails with "Could not export API server SSL..."
body: <p>After updating Xcode to latest version Xcode Server can not be turned on. It fails with error:</p>
  <pre><code>Could not export API server SSL certificate: Error Domain=XCSSecurity Code=-1 &quot;OpenSSL: Error decrypting key
  4304406060:error:06FFF089:digital envelope routines:CRYPTO_internal:bad key length:/System/Volumes/Data/SWE/macOS/BuildRoots/5b2e67f8af/Library/Caches/com.apple.xbs/Sources/libressl/libressl-75.60.3/libressl-2.8/crypto/apple/hmac/hmac.c:188:
  4304406060:error:06FFF078:digital envelope routines:CRYPTO_internal:keygen failure:/System/Volumes/Data/SWE/macOS/BuildRoots/5b2e67f8af/Library/Caches/com.apple.xbs/Sources/libressl/libressl-75.60.3/libressl-2.8/crypto/evp/evp_pbe.c:166:
  4304406060:error:23FFF073:PKCS12 routines:func(4095):pkcs12 algor cipherinit error:/System/Volumes/Data/SWE/macOS/BuildRoots/5b2e67f8af/Library/Caches/com.apple.xbs/Sources/libressl/libressl-75.60.3/libressl-2.8/crypto/pkcs12/p12_decr.c:83:
  4304406060:error:23FFF075:PKCS12 routines:func(4095):pkcs12 pbe crypt error:/System/Volumes/Data/SWE/macOS/BuildRoots/5b2e67f8af/Library/Caches/com.apple.xbs/Sources/libressl/libressl-75.60.3/libressl-2.8/crypto/pkcs12/p12_decr.c:133:
  &quot; UserInfo={NSLocalizedDescription=OpenSSL: Error decrypting key
  4304406060:error:06FFF089:digital envelope routines:CRYPTO_internal:bad key length:/System/Volumes/Data/SWE/macOS/BuildRoots/5b2e67f8af/Library/Caches/com.apple.xbs/Sources/libressl/libressl-75.60.3/libressl-2.8/crypto/apple/hmac/hmac.c:188:
  4304406060:error:06FFF078:digital envelope routines:CRYPTO_internal:keygen failure:/System/Volumes/Data/SWE/macOS/BuildRoots/5b2e67f8af/Library/Caches/com.apple.xbs/Sources/libressl/libressl-75.60.3/libressl-2.8/crypto/evp/evp_pbe.c:166:
  4304406060:error:23FFF073:PKCS12 routines:func(4095):pkcs12 algor cipherinit error:/System/Volumes/Data/SWE/macOS/BuildRoots/5b2e67f8af/Library/Caches/com.apple.xbs/Sources/libressl/libressl-75.60.3/libressl-2.8/crypto/pkcs12/p12_decr.c:83:
  4304406060:error:23FFF075:PKCS12 routines:func(4095):pkcs12 pbe crypt error:/System/Volumes/Data/SWE/macOS/BuildRoots/5b2e67f8af/Library/Caches/com.apple.xbs/Sources/libressl/libressl-75.60.3/libressl-2.8/crypto/pkcs12/p12_decr.c:133:
  }
  </code></pre>
  <p>Development and Xcode Server runs on the same Mac machine.
  I have tried to restart xcscontrol, but it did not help.</p>
  <pre><code>sudo xcscontrol --reset
  </code></pre>
  <p>In my case here is no <strong>SWE</strong> folder at this location:</p>
  <pre><code>/System/Volumes/Data
  </code></pre>
  <p><strong>How I could fix &quot;Could not export API server SSL...&quot; error?</strong></p>
  <p><a href="https://i.stack.imgur.com/464ZD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/464ZD.png" alt="Error when trying to enable presented when enabling Server &amp; Bots (Xcode Server)" /></a></p>