SCO backups gives a warning on retention with ssl connection couldn't be established
Applies to
- SnapCenter Plug-In for Oracle (SCO)
- SnapCenter Server for Linux
Issue
When SCO backup operations are performed the job completes with warnings on the retention step and as a result the snapshots are not being removed in storage. The following errors can be seen:
SnapManager.SMSDAL.Backup.ONTAPSnapshotRetention.RemoveSnapshot(RemoveSnapshotRequest request) : Detailed Exception The SSL connection could not be established, see inner exception. Chain of certificates are missing for the certificate 'server name'. Check if intermediate and root CA certificates exist.
Host 'server name' does not match with the certificate common name(CN) or SAN listed names. Check the certificate 'server name' for more information. : BaseException SnapMgrContracts.SmCertificateWebException: Chain of certificates are missing for the certificate 'server name'. Check if intermediate and root CA certificates exist.
Host 'server name' does not match with the certificate common name(CN) or SAN listed names. Check the certificate 'server name' for more information.
at SnapMgrHelper.RestAdapter.IsSslConnectionSecure(X509Certificate2 cert, X509Chain chain, SslPolicyErrors sslPolicyErrors, String targetHostName)
at SnapMgrHelper.RestAdapter.StrictValidateSmCertificate(HttpRequestMessage httpSender, X509Certificate cert, X509Chain chain, SslPolicyErrors sslPolicyErrors)
at System.Net.Security.SslStream.VerifyRemoteCertificate(RemoteCertificateValidationCallback remoteCertValidationCallback, SslCertificateTrust trust, ProtocolToken& alertToken, SslPolicyErrors& sslPolicyErrors, X509ChainStatusFlags& chainStatus)
at System.Net.Security.SslStream.CompleteHandshake(SslAuthenticationOptions sslAuthenticationOptions)
at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](Boolean receiveFirst, Byte[] reAuthenticationData, CancellationToken cancellationToken)
at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
Exit ONTAPSnapshotManagement - RemoveSnapshot
RemoveSnapshot - failed with error -1:The SSL connection could not be established, see inner exception.