Question: I need to render a button centered over a specific location, right now I'm using an OverlayView to render the button.

```
    <OverlayView
      position={north}
      mapPaneName={OverlayView.OVERLAY_MOUSE_TARGET}
    >
      <MapContextButton
        onClick={e => {
          e.preventDefault();
          console.log('click');
        }}
      />
    </OverlayView>

```

It produces the following result, rendering the overlay's top-left position on the north point. Is there a way to make it render centered on location?

[![enter image description here](https://i.stack.imgur.com/mCuqL.png)](https://i.stack.imgur.com/mCuqL.png)

Answer: 
This is caused by a change in the Postgres JDBC driver after version 42.2.2. Subsequent versions treat *ssl=true* to also be *sslmode=verify-ca* while also introducing a change that causes the default SSLFactory to not recognize the JRE *cacerts*.

To resolve this, either revert to driver 42.2.2 or set the sslfactory to *org.postgresql.ssl.DefaultJavaSSLFactory*

There is also a GitHub issue
<https://github.com/pgjdbc/pgjdbc/issues/1307>
At the moment, to work properly using SSL you need to configure DataGrip in the following way.

1. Go to SSH/SSL tab
2. Enable SSL and provide paths to CA cert, client cert & client private key
3. Go to Advanced tab
4. Find `sslmode` property and set desired verification level, e.g. verify-ca
5. Find `sslrootcert` property and provide path to your `ca.cert`

Furthermore, did you put your `root.crt` to `/home/user/.postgresql/root.crt`?

Also, if to refer to <https://cloud.google.com/sql/docs/postgres/connect-admin-ip#connect-ssl> use the following parameters:

`sslmode=verify-ca`

`sslrootcert=/path/to/your/server-ca.pem`

`ca file=/path/to/your/server-ca.pem`

`client certificate file=/path/to/your/client-cert.pem`

`client key file=/path/to/your/client-key.pem`