title: Can't install CA certificate on Android 11
body: <p>On preview version of Android 11 I got an error when trying to install CA certificate:</p>
  
  <pre class="lang-java prettyprint-override"><code>Intent intent = new Intent("android.credentials.INSTALL");
  intent.putExtra("name", getCertName());
  intent.putExtra("CERT", getCert());
  startActivity(intent);
  </code></pre>
  
  <p>The error message is:</p>
  
  <blockquote>
    <p><strong>Can't install CA certificates</strong></p>
    
    <p>CA certificates can put your privacy at risk and must be installed in
    Settings.</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/J4ZHY.png" rel="noreferrer"><img src="https://i.stack.imgur.com/J4ZHY.png" alt="enter image description here"></a></p>
  
  <p>I haven't found nothing on <strong>Android documentation</strong> about this change. Any ideas? Any workarounds (except to install it manually from settings)?</p>
  
  <p><strong>UPDATE (28/4):</strong></p>
  
  <p>Found a bug in issuetracker: <a href="https://issuetracker.google.com/issues/151858120" rel="noreferrer">https://issuetracker.google.com/issues/151858120</a></p>