December 1, 2008 at 11:19 pm
Dear All
I m creating a new sql server login "abc" in ss2k5.
How to add certificate in sql server login.
because mapped to certificate check box coming as disable...
Thanx
Thanks
December 2, 2008 at 1:25 pm
You have to create a certificate in the master db first.
I used a self signed cert example:
USE MASTER;
CREATE CERTIFICATE testlogincert
ENCRYPTION BY PASSWORD = 'pounlmdsf'
WITH SUBJECT = 'your login',
EXPIRY_DATE = '12/31/2012';
GO
And then map a user to it.
CREATE LOGIN 'your login' FROM CERTIFICATE testlogincert;
GO
December 2, 2008 at 9:23 pm
Dear Allex
When I run the first query then it gives this warning message:
Warning: The certificate you created is not yet valid; its start date is in the future.
and 2nd query is not working.
Thanx
Thanks
December 2, 2008 at 10:19 pm
hi i tried it on my machine it worked perfectly fine without any errors. by the way in the syntax given by Alex has an expiry date and not start date, for which you are getting error. Also once you get that resolved when you try to run 2nd part you have to put username without single quotes.
December 2, 2008 at 10:31 pm
Dear Sqlizer
Is this the same certificate as we upload for Https on our IE.
I know it's not.
But I m not understand how to use this.
Has anyone any detail help or article regarding this?
How much seurity we can provide by this ?
I want a deep in this?
Please Help?
Thanx
Thanks
December 6, 2008 at 3:38 pm
Certificates are used to encrypt your data just like in IE.
Here is the tutorial on certificates:
http://www.exforsys.com/tutorials/sql-server-2005/sql-server-managing-certificates.html
December 17, 2009 at 12:20 pm
Here is an article posted on this site today that explains how to do this for a "wrapper" around sp_send_dbmail:
http://www.sqlservercentral.com/articles/Security/68873/#
This is another article, this one wrapping CREATE LOGIN:
http://blogs.msdn.com/lcris/archive/2005/06/15/sql-server-2005-procedure-signing-demo.aspx
David Lathrop
DBA
WA Dept of Health
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply