Тёмный

SQL Server SSL 

Tips For IT Pros
Подписаться 3,3 тыс.
Просмотров 54 тыс.
50% 1

How to add SSL Certificate to SQL Server.
Command I used
New-SelfSignedCertificate -CertStoreLocation Cert:\LocalMachine\My -DnsName host.doman.com -KeySpec KeyExchange -FriendlyName SQLCert
For more details on SelfSignedCertificate command check out technet.microsoft.com/en-us/i...
Follow us on
Twitter - / tipsforitpros

Наука

Опубликовано:

 

16 июн 2017

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 43   
@TipsForITPros
@TipsForITPros 4 года назад
Hi all this is the current version I am using on SQL Servers, $params = @{ DnsName = "$env:COMPUTERNAME","$env:COMPUTERNAME.lab.net" KeyLength = 2048 KeyFriendlyName = "SQLServerCert" KeyAlgorithm = 'RSA' HashAlgorithm = 'SHA256' KeyExportPolicy = 'Exportable' KeySpec = 'KeyExchange' NotAfter = (Get-date).AddYears(2) Provider = 'Microsoft RSA SChannel Cryptographic Provider' CertStoreLocation = 'Cert:\LocalMachine\My' } $Cert = New-SelfSignedCertificate @params
@EKwong-xe6me
@EKwong-xe6me 4 года назад
Thank you for the video. I tried the script but it returned with the following error: New-SelfSignedCertificate : A parameter cannot be found that matches parameter name 'KeyAlgorithm'. At line:13 char:35 It's Windows Server 2012 R2 with PowerShell version is 5.1.14409.1018. I've very limited experience with PowerShell so maybe I did something wrong? Any advice? Thanks again.
@TipsForITPros
@TipsForITPros 4 года назад
Not near my lab right now but once I am will give it a try on windows 2012 image
@logicawe
@logicawe 3 года назад
Thanks you for the quality content 👍 just what I needed
@aigerimsadyrova6174
@aigerimsadyrova6174 4 года назад
Beautiful demo!
@DaveKimInfinitt
@DaveKimInfinitt 3 года назад
Thank you so much! Very useful video!
@solomarizaias4249
@solomarizaias4249 2 года назад
Resolveu meu problema aqui, obrigado!
@Tracks777
@Tracks777 7 лет назад
Awesome video
@nikaadeishvili
@nikaadeishvili 2 месяца назад
good job.thanks
@martinrousev
@martinrousev 5 лет назад
Very useful video! Do I have to change something to my connection strings and what drivers are supported?
@TipsForITPros
@TipsForITPros 5 лет назад
the last 4 version of SQL Drivers support Always on and version before that support SSL so this should be a problem, however depending on the connection string type for JDBC String connectionUrl = "jdbc:sqlserver://localhost:1433;" + "databaseName=AdventureWorks;integratedSecurity=true;" + "encrypt=true;trustServerCertificate=true"; in ASP.net "Server=localhost,1433;Database=dbname;uid=username;pwd=password;encrypt=true" These are fairly easy to find on google.
@magnaduddle756
@magnaduddle756 3 года назад
Ty guy !
@negushefine4010
@negushefine4010 3 года назад
You don't need to change the service account to local system if you already gave read permission or full control to the service running the engine on manage private key section of the certificate using MMC.
@TipsForITPros
@TipsForITPros 3 года назад
True, then you need to take the step of making sure extra setup is done and that can be annoying to do.
@onlyuvraj
@onlyuvraj 11 месяцев назад
SQL Certificate is generated but in CM Window, it is not showing in Certificate Tab under Network configuration. Please help.
@myleydysilvaaleman3909
@myleydysilvaaleman3909 Год назад
Muy buen video.. Una pregunta como importo mi certificado en sql para encriptar mis datos? Es una tarea para la uni
@AzharKalamazhar
@AzharKalamazhar 6 лет назад
New-SelfSignedCertificate : A parameter cannot be found that matches parameter name 'KeySpec'. Windows PowerShell ----> 2014 Microsoft Corporation Yours is ------> 2016 How can I Make it upgrade it 2016? Secondly How to check what version of powerShell I am running?
@TipsForITPros
@TipsForITPros 6 лет назад
Hi Azhar, I'm using windows 2016 that comes with Powershell 5 by default if you have Windows 2008 or Windows 7 and higher you can just download Powershell 5 from Microsoft. by downloading Windows Management Framework 5.1 As for the version you can check this by opening a PowerShell terminal and typing $PSVersionTable Hope that helps.
@Kamal-kh6ic
@Kamal-kh6ic 2 года назад
Sir, i need to know how do i generate a self signed certificate using sha 256 hashing algorithm with minimum 2048 bits key and use that certificate in SQL server ssl encryption? and also can i use this self signed certificate on production environment also?
@TipsForITPros
@TipsForITPros 2 года назад
You can used the KeyAlgorithm and KeyLength switches to do this. This is not recommended for production ,however, if you have an automated way to renew the certificate and the public key of the certificate is imported to the trusted store then technically there is nothing wrong but I would recommend using a PKI if possible. docs.microsoft.com/en-us/powershell/module/pki/new-selfsignedcertificate?view=windowsserver2019-ps
@brahimelbouazati9186
@brahimelbouazati9186 Год назад
well i still get an error "The certificate chain was issued by an authority that is not trusted"
@weichangteng4132
@weichangteng4132 Год назад
i have this also, even i follow the same steps that show in the video. Am i missed out any?
@samanthaletourneau9709
@samanthaletourneau9709 3 года назад
Can you explain how to renew the certificat if expire ?
@TipsForITPros
@TipsForITPros 3 года назад
Good question. basically there are four steps, 1) get new certificate, 2) install certificate, 3) replace the thumbprint to the new one and restart the service. 4) if step 3 went well remove the old certificate.
@ferfr01
@ferfr01 Год назад
is ti me or the audio is very low?
@ThePerd65
@ThePerd65 7 лет назад
Could you post the script you used in your Powershell to creat the certificate? Thanks!
@TipsForITPros
@TipsForITPros 7 лет назад
I've posted it to the video description along with a link to the TechNet article with all the options.
@ankitpanday7926
@ankitpanday7926 4 года назад
sir when i run command in power shell command window it gave some error
@TipsForITPros
@TipsForITPros 4 года назад
what was the command ? and what was the OS
@tahiraallahwasaya8402
@tahiraallahwasaya8402 4 года назад
Hii im facing the error it show setup block kindly hlp me to resolv this error
@TipsForITPros
@TipsForITPros 4 года назад
What's the error and command you are running
@tahiraallahwasaya8402
@tahiraallahwasaya8402 4 года назад
@@TipsForITPros when im instal sql serwer managemnt tool after downloding this when i run this it show setup blok error
@TipsForITPros
@TipsForITPros 4 года назад
Blocked files can be fixed by right clicking on the file and changing the blocked under general tab. Or you can use the powershell cmdlet to change the file settings. docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/unblock-file?view=powershell-7
@devendrasahu9028
@devendrasahu9028 5 лет назад
I tried the same step, but though it creates the certificate, it doesnt appear in the drop downlist of certificate for "Protocol for MSSQLServer Properties". Please help, as I tried in two different instance, and didnt work in either. My server is SQL server 2014 and 2016
@TipsForITPros
@TipsForITPros 5 лет назад
Right here are some tips and things to check. Certificate must be present in the Local computer certificate store or the current user certificate store. Certificate age must be present within the validity period. Certificate must be meant for server authentication. (EKU should specify Server Authentication [1.3.6.1.5.5.7.3.1]) Certificate must be created using the KEY_SPEC option of AT_KEYEXCHANGE (KEY_SPEC=1) Common name of the certificate should be the host name or the FQDN of the server computer. Certificate should use KeyAlgorithm RSA sql server has problems supporting other kinds. if you still have a problem please send me the command you are using.
@leonardoyanesbatista1334
@leonardoyanesbatista1334 4 года назад
@@TipsForITPros Same problem here... I follow step by step and certificate does´t appear on dropdown in SQL Server Configuration Manager...
@TipsForITPros
@TipsForITPros 4 года назад
@@leonardoyanesbatista1334 OK here is an example, please keep in mind that values you might want to change, like domain and valid till. $params = @{ DnsName = "$env:COMPUTERNAME","$env:COMPUTERNAME.lab.net" KeyLength = 2048 KeyFriendlyName = "SQLServerCert" KeyAlgorithm = 'RSA' HashAlgorithm = 'SHA256' KeyExportPolicy = 'Exportable' KeySpec = 'KeyExchange' NotAfter = (Get-date).AddYears(2) Provider = 'Microsoft RSA SChannel Cryptographic Provider' CertStoreLocation = 'Cert:\LocalMachine\My' } $Cert = New-SelfSignedCertificate @params
@yasminelakrib366
@yasminelakrib366 2 года назад
@@TipsForITPros Please I really need ur help, where can i use this command ???
@TipsForITPros
@TipsForITPros 2 года назад
@@yasminelakrib366 Any powershell session on the server should work just fine, I'm using PowerShell 5.1 the default with windows 2016 and 2019 and also tested with 7.2 powershell as well.
@utkarshjagdale2687
@utkarshjagdale2687 11 месяцев назад
then we click on thee stiffkit🤣
@rabihelhabta4399
@rabihelhabta4399 Год назад
I got this error, could you please advise what to do? thank you New-SelfsignedCertificate : CertEnroll::CX509Enrollment::_CreateRequest: Access is denied. 0x80070005 (WIN32: 5 ERROR_ACCESS_DENIED)
Далее
How to create a valid self signed SSL Certificate?
25:01
Securing SQL Server with TLS 1.2
53:02
Просмотров 34 тыс.
Symmetrical face⁉️🤔 #beauty
00:15
Просмотров 3,6 млн
Я тоже так могу
00:12
Просмотров 779 тыс.
ЮТУБ БЛОКИРУЮТ?
01:52
Просмотров 820 тыс.
Why The Windows Phone Failed
24:08
Просмотров 251 тыс.
SSL, TLS, HTTPS Explained
5:54
Просмотров 722 тыс.
How To Configure SQL Server SSL_Part2
13:05
Просмотров 7 тыс.
JPEG is Dying - And that's a bad thing
8:09
Просмотров 19 тыс.
Microsoft SQL Server Performance Tuning, Live
54:30
Просмотров 114 тыс.
Certificates and Certificate Authority Explained
16:23
Просмотров 133 тыс.
Powershell Remoting with Self-signed Certificate
14:14
Просмотров 1,6 тыс.
I've been using Redis wrong this whole time...
20:53
Просмотров 348 тыс.
АЙФОН Г0ВН0
0:54
Просмотров 1,9 млн